diff --git a/src/components/ScreenWrapper/index.js b/src/components/ScreenWrapper/index.js index c4032ada41b6..9eeee4d41f36 100644 --- a/src/components/ScreenWrapper/index.js +++ b/src/components/ScreenWrapper/index.js @@ -94,6 +94,8 @@ class ScreenWrapper extends React.Component { } render() { + const maxHeight = this.props.lockHeight ? null : this.props.windowHeight; + return ( {({ @@ -109,7 +111,7 @@ class ScreenWrapper extends React.Component { if (this.props.includeSafeAreaPaddingBottom || this.props.network.isOffline) { paddingStyle.paddingBottom = paddingBottom; } - const maxHeight = this.props.lockHeight ? null : this.props.windowHeight; + return ( {currentStep === Steps.IOUAmount && ( - - {this.renderHeader()} - { - this.setState({amount}); - this.navigateToNextStep(); - }} - reportID={reportID} - hasMultipleParticipants={this.props.hasMultipleParticipants} - selectedAmount={this.state.amount} - navigation={this.props.navigation} - iouType={this.props.iouType} - /> - + + {this.renderHeader()} + { + this.setState({amount}); + this.navigateToNextStep(); + }} + reportID={reportID} + hasMultipleParticipants={this.props.hasMultipleParticipants} + selectedAmount={this.state.amount} + navigation={this.props.navigation} + iouType={this.props.iouType} + /> + )} {currentStep === Steps.IOUParticipants && (