Skip to content Skip to sidebar Skip to footer

React-Native Can't Resolve Module For Fonts

I'm starting a very basic build. I'm using `create-react-native-app' and yarn for pm. From there all I have tried to accomplish is to load in 'native-base' for some UI elements. Fr

Solution 1:

They way I load custom fonts is by adding them in the Info.plist file as a list of Font provided by the application:

enter image description here

And they also need to be in the provided resources of the Build Phases:

enter image description here

After that, you can use it in the fontFamily property in CSS in react native. Make sure you also clean and build the project again after adding the fonts so they are copied to the device.


Post a Comment for "React-Native Can't Resolve Module For Fonts"