diff --git a/src/ROUTES.js b/src/ROUTES.js index 21a8dffbc749..8a2319b14ab1 100644 --- a/src/ROUTES.js +++ b/src/ROUTES.js @@ -10,6 +10,7 @@ const REPORT = 'r'; export default { BANK_ACCOUNT: 'bank-account/:stepToOpen?', BANK_ACCOUNT_PERSONAL: 'bank-account/personal', + getBankAccountRoute: stepToOpen => `bank-account/${stepToOpen}`, HOME: '', SETTINGS: 'settings', SETTINGS_PROFILE: 'settings/profile', diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.js b/src/libs/Navigation/AppNavigator/AuthScreens.js index 0eccf8732a96..96c964e441a7 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.js +++ b/src/libs/Navigation/AppNavigator/AuthScreens.js @@ -299,6 +299,7 @@ class AuthScreens extends React.Component { options={modalScreenOptions} component={ReimbursementAccountModalStackNavigator} listeners={modalScreenListeners} + initialParams={{stepToOpen: CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT}} />