From 09fff496c9b0d661033079665b11405e23c059af Mon Sep 17 00:00:00 2001 From: Dhananjoy Biswas Date: Fri, 22 Jul 2016 09:49:37 -0700 Subject: [PATCH] Remove redundant destructuring Summary: Closes https://github.com/facebook/react-native/pull/8964 Differential Revision: D3605729 fbshipit-source-id: 517a06d5100742af2fa57bc5ccf8e8e957165f7c --- .../NavigationExperimental/NavigationCardStack.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js b/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js index 41d2d7154..dc518628a 100644 --- a/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js +++ b/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js @@ -133,13 +133,7 @@ class NavigationCardStack extends React.Component { renderOverlay } = this.props; - let overlay = null; - if (renderOverlay) { - overlay = renderOverlay({ - ...props, - scene: props.scene, - }); - } + const overlay = renderOverlay && renderOverlay(props); const scenes = props.scenes.map( scene => this._renderScene({