Skip to content

Commit

Permalink
fixed navigation flash
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeKaufman committed Dec 12, 2024
1 parent 167461c commit d2d53b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ import PushNotificationManager, {
import {initializeFirebase} from './db/initializeFirebase';
import {ChannelOpenFeeInformation} from './app/components/admin/homeComponents/receiveBitcoin';
import {GestureHandlerRootView} from 'react-native-gesture-handler';
import GetThemeColors from './app/hooks/themeColors';

const Stack = createNativeStackNavigator();

Expand Down Expand Up @@ -321,6 +322,7 @@ function ResetStack(): JSX.Element | null {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [isloaded, setIsLoaded] = useState(false);
const {setDeepLinkContent} = useGlobalContextProvider();
const {backgroundColor} = GetThemeColors();

// Memoize handleDeepLink
const handleDeepLink = useCallback(
Expand Down Expand Up @@ -382,7 +384,13 @@ function ResetStack(): JSX.Element | null {
return <SplashScreen onAnimationFinish={handleAnimationFinish} />;
}
return (
<NavigationContainer ref={navigationRef}>
<NavigationContainer
theme={{
colors: {
background: backgroundColor,
},
}}
ref={navigationRef}>
<Stack.Navigator
screenOptions={{
headerShown: false,
Expand Down

0 comments on commit d2d53b6

Please sign in to comment.