Last active
July 9, 2022 21:10
-
-
Save devinkg/b984bbc7d5f16657cc57a6da86ef7691 to your computer and use it in GitHub Desktop.
Use this code snippet in project root folder when adding custom fonts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
project: { | |
ios: {}, | |
android: {}, | |
}, | |
assets: ['./src/assets/fonts/'], // <--- assets path | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Step 1. Create js file called react-native.config.js
Step 2. paste above code snippet
Please make sure about assets path