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.

from react native: things wish knew before starting out.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -