Skip to content

Instantly share code, notes, and snippets.

@devinkg
Last active July 9, 2022 21:10
Show Gist options
  • Save devinkg/b984bbc7d5f16657cc57a6da86ef7691 to your computer and use it in GitHub Desktop.
Save devinkg/b984bbc7d5f16657cc57a6da86ef7691 to your computer and use it in GitHub Desktop.
Use this code snippet in project root folder when adding custom fonts.
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./src/assets/fonts/'], // <--- assets path
};
@devinkg
Copy link
Author

devinkg commented Jul 9, 2022

Step 1. Create js file called react-native.config.js
Step 2. paste above code snippet

Please make sure about assets path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment