Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions app/components/Nav/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,14 @@
const { colors } = useTheme();

return (
<Stack.Navigator initialRouteName={Routes.ONBOARDING.SUCCESS}>
<Stack.Navigator
initialRouteName={Routes.ONBOARDING.SUCCESS}
screenOptions={{
cardStyle: { backgroundColor: colors.background.default },
headerStyle: { backgroundColor: colors.background.default },
headerShadowVisible: false,
}}
>
<Stack.Screen
name={Routes.ONBOARDING.SUCCESS}
component={OnboardingSuccess as ScreenComponent}
Expand All @@ -192,10 +199,6 @@
<Stack.Screen
name={Routes.ONBOARDING.DEFAULT_SETTINGS}
component={DefaultSettings}
options={{
headerStyle: { backgroundColor: colors.background.default },
cardStyle: { backgroundColor: colors.background.default },
}}
/>
<Stack.Screen
name={Routes.ONBOARDING.GENERAL_SETTINGS}
Expand All @@ -221,7 +224,12 @@
const { colors } = useTheme();

return (
<Stack.Navigator initialRouteName={'Onboarding'}>
<Stack.Navigator
initialRouteName={'Onboarding'}
screenOptions={{
cardStyle: { backgroundColor: colors.background.default },
}}
>
<Stack.Screen name="Onboarding" component={Onboarding} />
<Stack.Screen
name={Routes.ONBOARDING.SOCIAL_LOGIN_SUCCESS_NEW_USER}
Expand Down Expand Up @@ -253,7 +261,6 @@
component={DefaultSettings}
options={{
headerStyle: { backgroundColor: colors.background.default },
cardStyle: { backgroundColor: colors.background.default },
}}
/>
<Stack.Screen name="ManualBackupStep1" component={ManualBackupStep1} />
Expand Down Expand Up @@ -1222,7 +1229,7 @@
Logger.error(error, 'Error starting app');
});
// existingUser is not present in the dependency array because it is not needed to re-run the effect when it changes and it will cause a bug.
// eslint-disable-next-line react-hooks/exhaustive-deps

Check warning on line 1232 in app/components/Nav/App/App.tsx

View workflow job for this annotation

GitHub Actions / Run `lint`

React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
}, []);

return (
Expand Down
Loading