Skip to content

Commit

Permalink
We are render the scene passed by the NavigationTransitioner instead …
Browse files Browse the repository at this point in the history
…of the latest stored scene. (#86)

This is correct implementation of this function. Previos version has issues in case inital state has more than one route.
  • Loading branch information
dryganets authored and erictraut committed May 10, 2017
1 parent 7139217 commit e01b6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native-common/NavigatorExperimentalDelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class NavigatorExperimentalDelegate extends NavigatorDelegate {
// Callback from Navigator.js to RX.Navigator
private _renderScene = (props: NavigationSceneRendererProps, navigator?: RN.Navigator): JSX.Element => {
let parentState: NavigationState = props.navigationState;
let sceneState: NavigationRouteState = parentState.routes[parentState.index] as NavigationRouteState;
let sceneState: NavigationRouteState = parentState.routes[props.scene.index] as NavigationRouteState;
// route exists?
if (sceneState.route) {
// call the renderScene callback sent from SkypeXNavigator
Expand Down

0 comments on commit e01b6fe

Please sign in to comment.