Skip to content

Commit 7523542

Browse files
Fix backward animation when navigating from work-email to purpose
The PURPOSE screen was using the default animationTypeForReplace: 'pop', causing a backward animation when forceReplace navigates to it from work-email. Add animationTypeForReplace: 'push' to match WORK_EMAIL. Co-authored-by: Jayesh Mangwani <jayeshmangwani@users.noreply.github.com>
1 parent 80cfe1c commit 7523542

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function OnboardingModalNavigator() {
126126
<Stack.Screen
127127
name={SCREENS.ONBOARDING.PURPOSE}
128128
component={OnboardingPurpose}
129+
options={{animationTypeForReplace: 'push'}}
129130
/>
130131
<Stack.Screen
131132
name={SCREENS.ONBOARDING.PERSONAL_DETAILS}

0 commit comments

Comments
 (0)