@react-native-vector-icons/feather 13.0.0 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/android/src/main/java/VectorIconsFeatherPackage.kt +2 -2
- package/app.plugin.js +15 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/package.json +11 -3
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@ npm install @react-native-vector-icons/feather
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```jsx
|
|
16
|
+
import { Feather } from '@react-native-vector-icons/feather/static';
|
|
17
|
+
// or with dynamic font loading (see the Expo setup guide for details)
|
|
16
18
|
import { Feather } from '@react-native-vector-icons/feather';
|
|
17
19
|
|
|
18
20
|
// ...
|
|
@@ -20,6 +22,19 @@ import { Feather } from '@react-native-vector-icons/feather';
|
|
|
20
22
|
<Feather name="house" color="#ff0000" size={20} />
|
|
21
23
|
```
|
|
22
24
|
|
|
25
|
+
|
|
26
|
+
### Expo Config Plugin
|
|
27
|
+
|
|
28
|
+
This package ships an [Expo config plugin](../../docs/SETUP-EXPO.md). Add it to the `plugins` array in your `app.json` or `app.config.js` if you use static imports:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"expo": {
|
|
33
|
+
"plugins": ["@react-native-vector-icons/feather"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
23
38
|
## Versions
|
|
24
39
|
|
|
25
40
|
Prior to version 12, the version of this font package tracked the upstream version.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
package com.reactnativevectoricons.feather
|
|
2
2
|
|
|
3
|
-
import com.facebook.react.
|
|
3
|
+
import com.facebook.react.BaseReactPackage
|
|
4
4
|
import com.facebook.react.bridge.NativeModule
|
|
5
5
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
6
|
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
7
7
|
|
|
8
|
-
class VectorIconsFeatherPackage :
|
|
8
|
+
class VectorIconsFeatherPackage : BaseReactPackage() {
|
|
9
9
|
override fun getModule(
|
|
10
10
|
name: String,
|
|
11
11
|
reactContext: ReactApplicationContext,
|
package/app.plugin.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a generated file. If you modify it manually, your changes will be lost!
|
|
3
|
+
* Make your changes in `generator-react-native-vector-icons` package instead.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const { withInfoPlist } = require('@expo/config-plugins');
|
|
7
|
+
|
|
8
|
+
module.exports = (config) =>
|
|
9
|
+
withInfoPlist(config, (c) => {
|
|
10
|
+
const fonts = ['Feather.ttf'];
|
|
11
|
+
|
|
12
|
+
c.modResults.UIAppFonts = [...new Set([...(c.modResults.UIAppFonts || []), ...fonts])];
|
|
13
|
+
|
|
14
|
+
return c;
|
|
15
|
+
});
|
package/lib/commonjs/index.js
CHANGED
|
@@ -19,7 +19,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
19
19
|
const Feather = exports.Feather = (0, _common.createIconSet)(_Feather.default, {
|
|
20
20
|
postScriptName: 'Feather',
|
|
21
21
|
fontFileName: 'Feather.ttf',
|
|
22
|
-
fontSource: require('../../fonts/Feather.ttf')
|
|
22
|
+
fontSource: require('../../fonts/Feather.ttf')
|
|
23
23
|
});
|
|
24
24
|
/** @alias */
|
|
25
25
|
var _default = exports.default = Feather;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Object","defineProperty","exports","value","default","Feather","_common","require","_Feather","_interopRequireDefault","e","__esModule","createIconSet","glyphMap","postScriptName","fontFileName","fontSource","_default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPAA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA,GAAAF,OAAA,CAAAG,OAAA;AASA,IAAAC,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiD,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAN,OAAA,EAAAM,CAAA;AAE1C,MAAML,OAAO,GAAAH,OAAA,CAAAG,OAAA,GAAG,IAAAO,qBAAa,EAACC,gBAAQ,EAAE;EAC7CC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,aAAa;EAC3BC,UAAU,EAAET,OAAO,CAAC,sBAAsB
|
|
1
|
+
{"version":3,"names":["Object","defineProperty","exports","value","default","Feather","_common","require","_Feather","_interopRequireDefault","e","__esModule","createIconSet","glyphMap","postScriptName","fontFileName","fontSource","_default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPAA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA,GAAAF,OAAA,CAAAG,OAAA;AASA,IAAAC,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiD,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAN,OAAA,EAAAM,CAAA;AAE1C,MAAML,OAAO,GAAAH,OAAA,CAAAG,OAAA,GAAG,IAAAO,qBAAa,EAACC,gBAAQ,EAAE;EAC7CC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,aAAa;EAC3BC,UAAU,EAAET,OAAO,CAAC,sBAAsB;AAC5C,CAAC,CAAC;AAIF;AAAA,IAAAU,QAAA,GAAAf,OAAA,CAAAE,OAAA,GACeC,OAAO","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import glyphMap from '../../glyphmaps/Feather.json';
|
|
|
14
14
|
export const Feather = createIconSet(glyphMap, {
|
|
15
15
|
postScriptName: 'Feather',
|
|
16
16
|
fontFileName: 'Feather.ttf',
|
|
17
|
-
fontSource: require('../../fonts/Feather.ttf')
|
|
17
|
+
fontSource: require('../../fonts/Feather.ttf')
|
|
18
18
|
});
|
|
19
19
|
/** @alias */
|
|
20
20
|
export default Feather;
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createIconSet","glyphMap","Feather","postScriptName","fontFileName","fontSource","require"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAa,QAAQ,mCAAmC;AAEjE,OAAOC,QAAQ,MAAM,2BAA2B;AAEhD,OAAO,MAAMC,OAAO,GAAGF,aAAa,CAACC,QAAQ,EAAE;EAC7CE,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,aAAa;EAC3BC,UAAU,EAAEC,OAAO,CAAC,sBAAsB
|
|
1
|
+
{"version":3,"names":["createIconSet","glyphMap","Feather","postScriptName","fontFileName","fontSource","require"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAa,QAAQ,mCAAmC;AAEjE,OAAOC,QAAQ,MAAM,2BAA2B;AAEhD,OAAO,MAAMC,OAAO,GAAGF,aAAa,CAACC,QAAQ,EAAE;EAC7CE,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,aAAa;EAC3BC,UAAU,EAAEC,OAAO,CAAC,sBAAsB;AAC5C,CAAC,CAAC;AAIF;AACA,eAAeJ,OAAO","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-vector-icons/feather",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"description": "Feather font for react native vector icons",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"./glyphmaps/*.json": "./glyphmaps/*.json",
|
|
31
|
-
"./fonts/*.ttf": "./fonts/*.ttf"
|
|
31
|
+
"./fonts/*.ttf": "./fonts/*.ttf",
|
|
32
|
+
"./app.plugin": "./app.plugin.js"
|
|
32
33
|
},
|
|
33
34
|
"files": [
|
|
34
35
|
"src",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"android",
|
|
39
40
|
"ios",
|
|
40
41
|
"cpp",
|
|
42
|
+
"app.plugin.js",
|
|
41
43
|
"*.podspec",
|
|
42
44
|
"!ios/build",
|
|
43
45
|
"!android/build",
|
|
@@ -93,16 +95,22 @@
|
|
|
93
95
|
},
|
|
94
96
|
"devDependencies": {
|
|
95
97
|
"@types/react": "^19.1.0",
|
|
96
|
-
"del-cli": "^
|
|
98
|
+
"del-cli": "^7.0.0",
|
|
97
99
|
"onchange": "^7.1.0",
|
|
98
100
|
"react-native-builder-bob": "^0.35.2",
|
|
99
101
|
"typescript": "^5.7.2",
|
|
100
102
|
"feather-icons": "4.29.2"
|
|
101
103
|
},
|
|
102
104
|
"peerDependencies": {
|
|
105
|
+
"@expo/config-plugins": ">=10.0.0",
|
|
103
106
|
"react": "*",
|
|
104
107
|
"react-native": "*"
|
|
105
108
|
},
|
|
109
|
+
"peerDependenciesMeta": {
|
|
110
|
+
"@expo/config-plugins": {
|
|
111
|
+
"optional": true
|
|
112
|
+
}
|
|
113
|
+
},
|
|
106
114
|
"engines": {
|
|
107
115
|
"node": ">= 18.0.0"
|
|
108
116
|
},
|
package/src/index.ts
CHANGED
|
@@ -16,7 +16,7 @@ import glyphMap from '../glyphmaps/Feather.json';
|
|
|
16
16
|
export const Feather = createIconSet(glyphMap, {
|
|
17
17
|
postScriptName: 'Feather',
|
|
18
18
|
fontFileName: 'Feather.ttf',
|
|
19
|
-
fontSource: require('../fonts/Feather.ttf'),
|
|
19
|
+
fontSource: require('../fonts/Feather.ttf'),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
export type FeatherIconName = keyof typeof glyphMap;
|