Edit ist and add a property called Fonts provided by application (or UIAppFonts if Xcode won't autocomplete/not using Xcode) and type in the files you just added.Make sure your app is checked under "Add to targets" and that "Create groups" is checked if you add the whole folder. Browse to node_modules/react-native-vector-icons and drag the folder Fonts (or just the ones you want) to your project in Xcode.If you want to use any of the bundled icons, you need to add the icon fonts to your Xcode project. For each platform (iOS/Android/Windows) you plan to use, follow one of the options for the corresponding platform.Run: $ npm install react-native-vector-icons -save.SimpleLineIcons by Sabbir & Contributors (v2.4.1, 189 icons).Zocial by Sam Collins (v1.0, 100 icons).MaterialCommunityIcons by (v1.7.22, 1722 icons).Ionicons by Ben Sperry (v3.0.0, 859 icons).FontAwesome by Dave Gandy (v4.7.0, 675 icons).EvilIcons by Alexander Madyankin & Roman Shamin (v1.8.0, 70 icons).Pst! Migrating from react-native-icons? Scroll down for more information. Icons scale with accessibility settings (unless disabled).Presentational stuff like size and color can be defined in your stylesheet instead of via a property (if you want to).No need to define width and height styles. Most common use cases is JavaScript only and thus enables wider possibilities of styling (and is easier to integrate with your project).You can use the icon as an image if a native component requires it (such as NavigatorIOS).You can use icons inline with Text components as emojis or to create buttons.Supports SVG via Fontello or regular icon fonts. You can use your own custom icon sets.Easy to extend, style and integrate into your project. Perfect for buttons, logos and nav/tab bars.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |