DickyT / react-native-tabbar-navigator

(aka React Native Tanner Navigator) A component which builds excellent Navigator + TabBar based application, have a good solution for implementing hidesBottomBarWhenPushed in iOS.
97 stars 29 forks source link

Title of Navigator can be custom components. #2

Closed rahuljiresal closed 9 years ago

rahuljiresal commented 9 years ago

Changed the MainNavigator.js so that it takes in a component for the title. It has the following two advantages:

  1. Allows us to have a custom component as a title. e.g. a SegmentControlIOS
  2. Even for text titles, we can now customize the font, etc

simulator screen shot nov 10 2015 1 47 31 pm

DickyT commented 9 years ago

@rahuljiresal That was a really fantastic feature!! Thank you very much! I will take a look and complete the merge tonight!!

DickyT commented 9 years ago

@rahuljiresal I think there is some bugs in the aerofs:master pull request, sorry I need to revert this pull request, and I will open a branch and clone the aerofs:master, and try to fix the bugs and make the new feature works better. Anyway, thanks for your PR