React-native-router-flux: Navigation Bar titleStyle doesn't override fontFamily on Android

Created on 24 Jun 2016  路  5Comments  路  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

  • react-native-router-flux v3.30.0
  • react-native v0.28.0

screen shot 2016-06-24 at 19 41 49

As you can see that the custom font works on both iOS and Android on title "London Summer Party", but in NavBar only iOS works.

question

Most helpful comment

I just figured it out, you have to include a fontWeight with it as well, if you set it to fontWeight: 'normal' along with fontWeight: 'YOUR FONT', that worked for me.

All 5 comments

Is your font installed in Android? (including all formats Bold/Italic) I had a similar issue with android. For example IOS will default to the same family font if _bold_ or _italic_ are not installed, however Android will default to a System font.

I'm having the same issue right now

I just figured it out, you have to include a fontWeight with it as well, if you set it to fontWeight: 'normal' along with fontWeight: 'YOUR FONT', that worked for me.

+1 Having the same issue, but setting fontWeight: 'normal' as suggested by mrnahidtalukder solved the issue for now.

@andrispraulitis do you have any further comments? can you please close this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GCour picture GCour  路  3Comments

willmcclellan picture willmcclellan  路  3Comments

YouYII picture YouYII  路  3Comments

sreejithr picture sreejithr  路  3Comments

vinayr picture vinayr  路  3Comments