diff --git a/build/FontAwesome5.d.ts b/build/FontAwesome5.d.ts index 7ced659..15641ed 100644 --- a/build/FontAwesome5.d.ts +++ b/build/FontAwesome5.d.ts @@ -1,3 +1,8 @@ -export { FA5Style } from './vendor/react-native-vector-icons/lib/create-icon-set-from-fontawesome5'; +export declare const FA5Style: { + regular: string; + light: string; + solid: string; + brand: string; +}; declare const iconSet: any; export default iconSet; diff --git a/build/FontAwesome5.js b/build/FontAwesome5.js index d055c8f..1b0831e 100644 --- a/build/FontAwesome5.js +++ b/build/FontAwesome5.js @@ -7,7 +7,12 @@ const fontMap = { Solid: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf'), Brand: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf'), }; -export { FA5Style } from './vendor/react-native-vector-icons/lib/create-icon-set-from-fontawesome5'; +export const FA5Style = { + regular: 'regular', + light: 'light', + solid: 'solid', + brand: 'brand', +}; const iconSet = createFA5iconSet(glyphMap, metadata, fontMap, false); export default iconSet; //# sourceMappingURL=FontAwesome5.js.map \ No newline at end of file diff --git a/build/FontAwesome5.js.map b/build/FontAwesome5.js.map index 7d39de5..599fe61 100644 --- a/build/FontAwesome5.js.map +++ b/build/FontAwesome5.js.map @@ -1 +1 @@ -{"version":3,"file":"FontAwesome5.js","sourceRoot":"","sources":["../src/FontAwesome5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,QAAQ,MAAM,oEAAoE,CAAC;AAC1F,OAAO,QAAQ,MAAM,yEAAyE,CAAC;AAC/F,MAAM,OAAO,GAAG;IACd,OAAO,EAAE,OAAO,CAAC,mEAAmE,CAAC;IACrF,KAAK,EAAE,OAAO,CAAC,mEAAmE,CAAC;IACnF,KAAK,EAAE,OAAO,CAAC,iEAAiE,CAAC;IACjF,KAAK,EAAE,OAAO,CAAC,kEAAkE,CAAC;CACnF,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,MAAM,0EAA0E,CAAC;AAEpG,MAAM,OAAO,GAAG,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAErE,eAAe,OAAO,CAAC","sourcesContent":["import { createFA5iconSet } from './createIconSetFromFontAwesome5';\n\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free.json';\nimport metadata from './vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json';\nconst fontMap = {\n Regular: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf'),\n Light: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf'),\n Solid: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf'),\n Brand: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf'),\n};\n\nexport { FA5Style } from './vendor/react-native-vector-icons/lib/create-icon-set-from-fontawesome5';\n\nconst iconSet = createFA5iconSet(glyphMap, metadata, fontMap, false);\n\nexport default iconSet;\n"]} \ No newline at end of file +{"version":3,"file":"FontAwesome5.js","sourceRoot":"","sources":["../src/FontAwesome5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,QAAQ,MAAM,oEAAoE,CAAC;AAC1F,OAAO,QAAQ,MAAM,yEAAyE,CAAC;AAC/F,MAAM,OAAO,GAAG;IACd,OAAO,EAAE,OAAO,CAAC,mEAAmE,CAAC;IACrF,KAAK,EAAE,OAAO,CAAC,mEAAmE,CAAC;IACnF,KAAK,EAAE,OAAO,CAAC,iEAAiE,CAAC;IACjF,KAAK,EAAE,OAAO,CAAC,kEAAkE,CAAC;CACnF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACf,CAAC;AAEF,MAAM,OAAO,GAAG,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAErE,eAAe,OAAO,CAAC","sourcesContent":["import { createFA5iconSet } from './createIconSetFromFontAwesome5';\n\nimport glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free.json';\nimport metadata from './vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json';\nconst fontMap = {\n Regular: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf'),\n Light: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf'),\n Solid: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf'),\n Brand: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf'),\n};\n\nexport const FA5Style = {\n regular: 'regular',\n light: 'light',\n solid: 'solid',\n brand: 'brand',\n};\n\nconst iconSet = createFA5iconSet(glyphMap, metadata, fontMap, false);\n\nexport default iconSet;\n"]} \ No newline at end of file diff --git a/package.json b/package.json index 240bcb0..883df12 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@expo/vector-icons", "sideEffects": false, - "version": "10.0.0", + "version": "10.0.1", "description": "Built-in support for popular icon fonts and the tooling to create your own Icon components from your font and glyph map. This is a wrapper around react-native-vector-icons to make it compatible with Expo.", "main": "build/IconsLazy.js", "module": "build/Icons.js", diff --git a/src/FontAwesome5.ts b/src/FontAwesome5.ts index b4d6698..30ac8c0 100644 --- a/src/FontAwesome5.ts +++ b/src/FontAwesome5.ts @@ -9,7 +9,12 @@ const fontMap = { Brand: require('./vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf'), }; -export { FA5Style } from './vendor/react-native-vector-icons/lib/create-icon-set-from-fontawesome5'; +export const FA5Style = { + regular: 'regular', + light: 'light', + solid: 'solid', + brand: 'brand', +}; const iconSet = createFA5iconSet(glyphMap, metadata, fontMap, false);