Steps to use custom fonts in React Native iOS

suggest change

1. Include the font in your Xcode project.

2. Make sure that they are included in the Target Membership column

Click the font in the navigator and check that it is included.

3. Check that the font is included as a resource in your bundle

Click the Xcode project file, select "Build Phases", then select "Copy Bundle Resources". Check that your font is listed.

4. Include the font in the application plist (Info.plist)

From the application folder, open Info.plist, click "Information Property List", then click the plus sign (+). From the drop-down list choose "Fonts provided by application". The value is the font file name, including its extension (for example IndieFlower.ttf). fontFamily below is the font's internal name, which is not always the file name.

5. Add the font file name under Fonts provided by application

Expand Fonts provided by application and add the file name in the value column.

6. Use it in the application

<Text style={{fontFamily:'IndieFlower'}}>
  Welcome to React Native!
</Text>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents