Skip to content

Commit ad8e536

Browse files
committed
Remove redundant destructuring
1 parent 37e5f3b commit ad8e536

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,7 @@ class NavigationCardStack extends React.Component<DefaultProps, Props, void> {
133133
renderOverlay
134134
} = this.props;
135135

136-
let overlay = null;
137-
if (renderOverlay) {
138-
overlay = renderOverlay({
139-
...props,
140-
scene: props.scene,
141-
});
142-
}
136+
const overlay = renderOverlay && renderOverlay(props);
143137

144138
const scenes = props.scenes.map(
145139
scene => this._renderScene({

0 commit comments

Comments
 (0)