From 5ec60effea748b862f55d4b4136a93b351f80dc3 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Thu, 16 Jul 2015 17:35:45 -0700 Subject: [PATCH] [ReactNative] revert 'unbreak navigation due to onItemRef removal' --- Libraries/CustomComponents/Navigator/Navigator.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Libraries/CustomComponents/Navigator/Navigator.js b/Libraries/CustomComponents/Navigator/Navigator.js index 5121b108e..573223771 100644 --- a/Libraries/CustomComponents/Navigator/Navigator.js +++ b/Libraries/CustomComponents/Navigator/Navigator.js @@ -45,7 +45,6 @@ var View = require('View'); var clamp = require('clamp'); var flattenStyle = require('flattenStyle'); -var guid = require('guid'); var invariant = require('invariant'); var rebound = require('rebound'); @@ -1013,14 +1012,14 @@ var Navigator = React.createClass({ } }, - _renderScene: function(route, i, key) { + _renderScene: function(route, i) { var disabledSceneStyle = null; if (i !== this.state.presentedIndex) { disabledSceneStyle = styles.disabledScene; } return ( { return (this.state.transitionFromIndex != null) || (this.state.transitionFromIndex != null); @@ -1053,7 +1052,7 @@ var Navigator = React.createClass({ index !== this.state.presentedIndex) { renderedScene = this._renderedSceneMap.get(route); } else { - renderedScene = this._renderScene(route, index, guid()); + renderedScene = this._renderScene(route, index); } newRenderedSceneMap.set(route, renderedScene); return renderedScene;