Browse files


NavigatorIOS push method arg is route object.
For working this image animation,
add passProps property to NavigationIOS,
changed _onForward function navigator.push method arg is route object

Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos!

Please read the Contribution Guidelines at to learn more about contributing to React Native.

Happy contributing!
Closes #15178

Differential Revision: D5481399

Pulled By: hramos

fbshipit-source-id: b131ef27b70fc0bbc4f519a924187c19dca73ed2
  • Loading branch information...
fecot authored and facebook-github-bot committed Jul 24, 2017
1 parent f704369 commit f39f21660d2318997d3ca2fc52deaf50e47d62df
Showing with 8 additions and 2 deletions.
  1. +8 −2 docs/
@@ -99,6 +99,7 @@ export default class NavigatorIOSApp extends React.Component {
component: MyScene,
title: 'My Initial Scene',
passProps: {index: 1},
style={{flex: 1}}
@@ -108,18 +109,23 @@ export default class NavigatorIOSApp extends React.Component {
class MyScene extends React.Component {
static propTypes = {
title: PropTypes.string.isRequired,
route: PropTypes.shape({
title: PropTypes.string.isRequired
navigator: PropTypes.object.isRequired,
constructor(props, context) {
super(props, context);
this._onForward = this._onForward.bind(this);
_onForward() {
let nextIndex = ++this.props.index;
component: MyScene,
title: 'Scene ' + nextIndex,
passProps: {index: nextIndex}

0 comments on commit f39f216

Please sign in to comment.