This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Releases: t4t5/react-native-router
Releases · t4t5/react-native-router
Version 0.2.0
Changelog:
- Ability to hide the navigation bar by setting the attribute
hideNavigationBar: trueon the Router component - Reset the route stack to the very first route by calling
this.props.reset() - Ability to change the status bar color by setting the attribute
statusBarColor: blackon the Router component
Version 0.1.3
Changelog:
- Fix bug with React 0.4.0 which caused the app not to render.
- Add
this.props.customActionto the route views as well so that you can call actions up to the Router by pressing something on your page.
Version 0.1.2
Changelog:
- Allow data to be passed to your routes by passing an object with the
datakey in thetoRoute()-function. - Update Twitter example to show how passing data to your routes is useful.
- Custom actions for your
rightCornerandleftCornercomponents (to do stuff besides navigating to routes, like opening a side menu). This is triggered by calling the callback functionthis.props.customAction()from your component. It is then picked up with<Router customAction={this.doSomething} />. - Allow the navigation bar title to be styled with the
titleStyle-prop in the<Router />component.