1

I've been told by developer that only Regular 400 and Bold 700 can be implemented. Can someone please confirm this? Thanks!

Katie
  • 11
  • 3
  • https://stackoverflow.com/questions/38815234/how-to-add-fonts-for-different-font-weights-for-react-native-android-project/70247374#70247374 this answer may help on this issue. – mico Feb 23 '22 at 09:44

1 Answers1

0

It's possible.

Step 1. Install the font

The fastest way will be using expo-font and @expo-google-fonts/inter

https://docs.expo.dev/guides/using-custom-fonts/

BUT double-check on real devices because sometimes there are bugs like the famous 2 last characters trimmed

Step 2. Update app-mapping-theme.json

Update your ApplicationProvider customMapping props

// app-mapping-theme.json
{
  "strict": {
    "text-font-family": "roboto"
  }
}

I imported the file on my App.js like this

import { default as mapping } from "~/constants/app-mapping-theme.json";
David Leuliette
  • 1,595
  • 18
  • 26