navbar-native
navbar-native copied to clipboard
Custom icon font
Hi! Is it possible to use custom fonts? When I try to add mine, for example:
left={{
icon: "back",
iconColor: "#838383",
label: "Back",
style:{color: '#838383', fontSize: 13, fontFamily: 'rubik-regular'},
onPress: () => Actions.stock()
}}
I get the character "?" on the icon. But it works on the rest of the app, only on the Navbar it's not working. Doing something wrong?
Icons can be customized by iconXXX
props. So, try something like this...
left={{
icon: "back",
iconFamily: "rubik-regular"
iconColor: "#838383",
iconSize: 13
label: "Back",
onPress: () => Actions.stock()
}}
It didn't work, It doesn't recognize custom font no matter what. But with vector icons fonts it works just fine...
I did use what @redbaron76 said and it worked fine for me. Check the Metro terminal for issues or the yellow boxes in the app, you should have made a mistake somewhere.