Skip to content

Commit e01b6fe

Browse files
dryganetserictraut
authored andcommitted
We are render the scene passed by the NavigationTransitioner instead 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.
1 parent 7139217 commit e01b6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native-common/NavigatorExperimentalDelegate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class NavigatorExperimentalDelegate extends NavigatorDelegate {
207207
// Callback from Navigator.js to RX.Navigator
208208
private _renderScene = (props: NavigationSceneRendererProps, navigator?: RN.Navigator): JSX.Element => {
209209
let parentState: NavigationState = props.navigationState;
210-
let sceneState: NavigationRouteState = parentState.routes[parentState.index] as NavigationRouteState;
210+
let sceneState: NavigationRouteState = parentState.routes[props.scene.index] as NavigationRouteState;
211211
// route exists?
212212
if (sceneState.route) {
213213
// call the renderScene callback sent from SkypeXNavigator

0 commit comments

Comments
 (0)