diff --git a/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js b/Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js index 41d2d7154e2075..dc518628a1864a 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({