diff --git a/src/DefaultRenderer.js b/src/DefaultRenderer.js index 06a01fe94..686d2fb4b 100644 --- a/src/DefaultRenderer.js +++ b/src/DefaultRenderer.js @@ -64,6 +64,14 @@ export default class DefaultRenderer extends Component { return; } const scene = navigationState.children[navigationState.index]; + // (temp or production?) Fix for #664 + if (navigationState.index > 0) { + // Make sure the key names are not the same, or error will be thrown. + if (scene.key === navigationState.children[navigationState.index-1].key) { + // Change the new key name (just add current index to end of scene.key) + scene.key = scene.key+=navigationState.index; + } + } Actions.focus({ scene }); }