android - custom font for both ios and andriod in react native -
i follow this install custom in rn. works in android not in ios.
when running on ios, shows error font not found.
how make work both ios , android?
simply create 'assets' folder in root of project (or wherever want), drop in font files, , define in project's package.json.
"rnpm": { "assets": ["assets"] },
then, run react-native link , besides linking 3rd party modules, link fonts put in there respective project files.
Comments
Post a Comment