Remove redundant destructuring

Summary: Closes https://github.com/facebook/react-native/pull/8964

Differential Revision: D3605729

fbshipit-source-id: 517a06d5100742af2fa57bc5ccf8e8e957165f7c
This commit is contained in:
Dhananjoy Biswas 2016-07-22 09:49:37 -07:00 committed by Facebook Github Bot 2
parent 37e5f3b6ca
commit 09fff496c9
1 changed files with 1 additions and 7 deletions

View File

@ -133,13 +133,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
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({