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:
parent
37e5f3b6ca
commit
09fff496c9
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue