Skip to content

Commit

Permalink
Merge pull request zingolabs#796 from juanky201271/dev_version_initia…
Browse files Browse the repository at this point in the history
…l_screen_fixed

Version initial screen fixed
  • Loading branch information
dorianvp authored Mar 4, 2025
2 parents d36c162 + b16fbec commit 6c318db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ const App: React.FunctionComponent = () => {
justifyContent: 'center',
backgroundColor: theme.colors.card,
}}>
<Stack.Navigator initialRouteName={RouteEnums.LoadingApp} screenOptions={{ headerShown: false }}>
<Stack.Screen name={RouteEnums.LoadingApp}>
<Stack.Navigator initialRouteName={RouteEnums.LoadingApp} screenOptions={{ headerShown: false, animation: 'none' }}>
<Stack.Screen name={RouteEnums.LoadingApp} options={{ animation: 'none' }}>
{props => <LoadingApp {...props} toggleTheme={toggleTheme} />}
</Stack.Screen>
<Stack.Screen name={RouteEnums.LoadedApp}>
<Stack.Screen name={RouteEnums.LoadedApp} options={{ animation: 'none' }}>
{props => <LoadedApp {...props} toggleTheme={toggleTheme} />}
</Stack.Screen>
</Stack.Navigator>
Expand Down
11 changes: 11 additions & 0 deletions __tests__/__snapshots__/App.snapshot.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,26 @@ exports[`Component App - test App - snapshot 1`] = `
initialRouteName="LoadingApp"
screenOptions={
{
"animation": "none",
"headerShown": false,
}
}
>
<MockedScreen
name="LoadingApp"
options={
{
"animation": "none",
}
}
/>
<MockedScreen
name="LoadedApp"
options={
{
"animation": "none",
}
}
/>
</MockedNavigator>
`;

0 comments on commit 6c318db

Please sign in to comment.