diff --git a/src/libs/shouldDelayFocus/index.android.js b/src/libs/shouldDelayFocus/index.android.js new file mode 100644 index 000000000000..4de1e1fc7f3a --- /dev/null +++ b/src/libs/shouldDelayFocus/index.android.js @@ -0,0 +1,2 @@ +// When using transitions on Android, we need to delay focusing the text inputs for the keyboard to open. +export default true; diff --git a/src/libs/shouldDelayFocus/index.js b/src/libs/shouldDelayFocus/index.js new file mode 100644 index 000000000000..33136544dba2 --- /dev/null +++ b/src/libs/shouldDelayFocus/index.js @@ -0,0 +1 @@ +export default false; diff --git a/src/pages/ReimbursementAccount/BankAccountManualStep.js b/src/pages/ReimbursementAccount/BankAccountManualStep.js index d5f58071dc12..c42b0f7186f4 100644 --- a/src/pages/ReimbursementAccount/BankAccountManualStep.js +++ b/src/pages/ReimbursementAccount/BankAccountManualStep.js @@ -17,6 +17,7 @@ import ONYXKEYS from '../../ONYXKEYS'; import exampleCheckImage from './exampleCheckImage'; import Form from '../../components/Form'; import * as ReimbursementAccountUtils from '../../libs/ReimbursementAccountUtils'; +import shouldDelayFocus from '../../libs/shouldDelayFocus'; const propTypes = { ...withLocalizePropTypes, @@ -92,6 +93,8 @@ class BankAccountManualStep extends React.Component { source={exampleCheckImage(this.props.preferredLocale)} />