Skip to content

Commit 323dc5a

Browse files
authored
fix(mobile): standard push transition for contests screen (#14449)
1 parent 030b33a commit 323dc5a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

packages/mobile/src/screens/app-screen/AppTabScreen.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,15 @@ export const AppTabScreen = ({ baseScreen, Stack }: AppTabScreenProps) => {
269269

270270
<Stack.Screen name='AudioScreen' component={AudioScreen} />
271271
<Stack.Screen name='RewardsScreen' component={RewardsScreen} />
272-
<Stack.Screen name='Contests' component={ContestsScreen} />
272+
<Stack.Screen
273+
name='Contests'
274+
component={ContestsScreen}
275+
// Contests is reached from the left nav drawer, which passes
276+
// `fromAppDrawer: true` and drops the screen animation to 'none'.
277+
// That leaves a jarring instant pop when navigating away. Force the
278+
// standard horizontal push so it transitions like the Track screen.
279+
options={{ animation: 'simple_push' }}
280+
/>
273281
<Stack.Screen name='Contest' component={ContestScreen} />
274282
<Stack.Screen
275283
name='ContestFollowers'

0 commit comments

Comments
 (0)