navbar-native icon indicating copy to clipboard operation
navbar-native copied to clipboard

Custom icon font

Open andreecosta opened this issue 7 years ago • 3 comments

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?

andreecosta avatar Apr 19 '17 15:04 andreecosta

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()
        }}

redbaron76 avatar Apr 21 '17 05:04 redbaron76

It didn't work, It doesn't recognize custom font no matter what. But with vector icons fonts it works just fine...

andreecosta avatar Apr 21 '17 13:04 andreecosta

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.

zedtux avatar Jul 06 '18 13:07 zedtux