Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Feb 15, 2023
1 parent ccdee22 commit 5a3938d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import 'expo-dev-client';
import React, {useCallback, useEffect, useState} from 'react';
import {LogBox} from 'react-native';
import * as SplashScreen from 'expo-splash-screen';
import {StatusBar} from 'expo-status-bar';
import {GestureHandlerRootView} from 'react-native-gesture-handler';

import {AppRoot} from './src/screens';
import {AppRoot} from './src/navio';
import {
configureDesignSystem,
getNavigationTheme,
Expand All @@ -13,11 +14,13 @@ import {
} from './src/utils/designSystem';
import {hydrateStores} from './src/stores';
import {initServices} from './src/services';
import {SSProvider} from './src/utils/providers';
import {StatusBar} from 'expo-status-bar';
import {AppProvider} from './src/utils/providers';
import {useAppearance} from './src/utils/hooks';

LogBox.ignoreLogs(['Require']);
LogBox.ignoreLogs([
'Require',
'Found screens with the same name nested inside one another.', // for navio in some cases
]);

export default (): JSX.Element => {
useAppearance();
Expand All @@ -41,10 +44,10 @@ export default (): JSX.Element => {
if (!ready) return <></>;
return (
<GestureHandlerRootView style={{flex: 1}}>
<SSProvider>
<AppProvider>
<StatusBar style={getStatusBarStyle()} backgroundColor={getStatusBarBGColor()} />
<AppRoot navigationContainerProps={{theme: getNavigationTheme()}} />
</SSProvider>
</AppProvider>
</GestureHandlerRootView>
);
};

0 comments on commit 5a3938d

Please sign in to comment.