diff --git a/src/components/OfflineIndicator.js b/src/components/OfflineIndicator.js index 94c0cb44f1fd..aafda94fdf0a 100644 --- a/src/components/OfflineIndicator.js +++ b/src/components/OfflineIndicator.js @@ -44,6 +44,7 @@ const OfflineIndicator = (props) => { return ( {}, }, modal: {}, - keyboardAvoidingViewBehavior: 'padding', }; class ScreenWrapper extends React.Component { @@ -120,36 +105,27 @@ class ScreenWrapper extends React.Component { paddingStyle.paddingTop = paddingTop; } - // We always need the safe area padding bottom if we're showing the offline indicator since it is bottom-docked. - if (this.props.includePaddingBottom || this.props.network.isOffline) { + if (this.props.includePaddingBottom) { paddingStyle.paddingBottom = paddingBottom; } return ( - - - - {// If props.children is a function, call it to provide the insets to the children. - _.isFunction(this.props.children) - ? this.props.children({ - insets, - didScreenTransitionEnd: this.state.didScreenTransitionEnd, - }) - : this.props.children - } - - {this.props.isSmallScreenWidth && this.props.network.isOffline && ( - - - - )} - + + {// If props.children is a function, call it to provide the insets to the children. + _.isFunction(this.props.children) + ? this.props.children({ + insets, + didScreenTransitionEnd: this.state.didScreenTransitionEnd, + }) + : this.props.children + } + ); }} @@ -163,11 +139,9 @@ ScreenWrapper.defaultProps = defaultProps; export default compose( withNavigation, - withWindowDimensions, withOnyx({ modal: { key: ONYXKEYS.MODAL, }, }), - withNetwork(), )(ScreenWrapper); diff --git a/src/pages/AddPersonalBankAccountPage.js b/src/pages/AddPersonalBankAccountPage.js index 6d6586fa1f0e..5a14ed6f7f45 100644 --- a/src/pages/AddPersonalBankAccountPage.js +++ b/src/pages/AddPersonalBankAccountPage.js @@ -13,6 +13,7 @@ import AddPlaidBankAccount from '../components/AddPlaidBankAccount'; import getPlaidOAuthReceivedRedirectURI from '../libs/getPlaidOAuthReceivedRedirectURI'; import compose from '../libs/compose'; import ONYXKEYS from '../ONYXKEYS'; +import KeyboardAvoidingView from '../components/KeyboardAvoidingView'; import Text from '../components/Text'; import styles from '../styles/styles'; import Button from '../components/Button'; @@ -124,65 +125,67 @@ class AddPersonalBankAccountPage extends React.Component { return ( - - {success ? ( - <> - - {success} - - -