Skip to content

Commit

Permalink
AppearanceProvider removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Oct 1, 2022
1 parent 8416f81 commit 24e9210
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/utils/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
import React, {PropsWithChildren} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {StatusBar} from 'expo-status-bar';

import {ServicesProvider, useServices} from '../services';
import {getStatusBarStyle, getStatusBarBGColor, getNavigationTheme} from './designSystem';
import {ServicesProvider} from '../services';
import {StoresProvider} from '../stores';
import {useAppearance} from './hooks';

export const AppearanceProvider: React.FC<PropsWithChildren<{}>> = ({children}) => {
useAppearance();
const {nav} = useServices();

return (
<>
<StatusBar style={getStatusBarStyle()} backgroundColor={getStatusBarBGColor()} />
<NavigationContainer
ref={nav.n}
onReady={nav.onReady}
onStateChange={nav.onStateChange}
theme={getNavigationTheme()}
>
{children}
</NavigationContainer>
</>
);
};

export const SSProvider: React.FC<PropsWithChildren<{}>> = ({children}) => {
return (
Expand Down

0 comments on commit 24e9210

Please sign in to comment.