diff --git a/src/components/ScreenWrapper/index.android.js b/src/components/ScreenWrapper/index.android.js index 55067bd50923..aee674422f6b 100644 --- a/src/components/ScreenWrapper/index.android.js +++ b/src/components/ScreenWrapper/index.android.js @@ -6,11 +6,13 @@ const ScreenWrapper = props => ( {props.children} ); + +defaultProps.keyboardAvoidingViewBehavior = 'height'; + ScreenWrapper.propTypes = propTypes; ScreenWrapper.defaultProps = defaultProps; diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index f353210de918..d2c114335e53 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -1,7 +1,7 @@ import React from 'react'; import {withOnyx} from 'react-native-onyx'; import PropTypes from 'prop-types'; -import {Keyboard, View} from 'react-native'; +import {Keyboard, Platform, View} from 'react-native'; import lodashGet from 'lodash/get'; import _ from 'underscore'; import lodashFindLast from 'lodash/findLast'; @@ -227,7 +227,10 @@ class ReportScreen extends React.Component { reportClosedAction = lodashFindLast(this.props.reportActions, action => action.actionName === CONST.REPORT.ACTIONS.TYPE.CLOSED); } return ( - + Navigation.navigate(ROUTES.HOME)}