Skip to content

Instantly share code, notes, and snippets.

@shubhamkakkar
Created January 19, 2021 21:23
Show Gist options
  • Save shubhamkakkar/f64deb77d7daf03bd7ab3b8730b2ce09 to your computer and use it in GitHub Desktop.
Save shubhamkakkar/f64deb77d7daf03bd7ab3b8730b2ce09 to your computer and use it in GitHub Desktop.
// make sure you have not installed react-native vector icons by now
make a file named react-native.config.js, content should be following
```
module.exports = {
projects: {
ios: {},
android: {},
},
assets: ['./assets/fonts'],
};
```
As represented in the file, the custom fonts should be made available in the "assets/fonts" folder in the root directory.
ater this, execute the following command
```
yarn react-native link
```
This will
1. copy the contents into anroid/app/src/main/assets
2. createa a folder called Resources, if not existing in ios and copy these files there.
After this,
install "react native vector icons and follow the manual procedure of adding the fonts to xcode and android"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment