expo / shoutem-example

https://blog.getexponent.com/using-react-native-ui-toolkits-with-exponent-3993434caf66
11 stars 5 forks source link

TextInput requires Rubik font #2

Open mypark opened 7 years ago

mypark commented 7 years ago

TextInput requires a font named 'Rubik' so we might also need to load/alias that font as well?

Or, should we do a pull request to shoutem/ui for them to update their shoutem.ui.TextInput style to reference a font-family of 'Rubik-Regular' rather than just 'Rubik'

mauriciord commented 7 years ago

Same problem here, what did you make ? @mypark

mypark commented 7 years ago

I added 

{'Rubik': require('./node_modules/@shoutem/ui/fonts/Rubik-Regular.ttf')}

to loadAssetsAsync in main.js

ng-hai commented 7 years ago

In my case

{ 'Rubik-Regular': require('./node_modules/@shoutem/ui/fonts/Rubik-Regular.ttf') }