Skip to content

Commit

Permalink
Merge 466e963 into 0cbbc05
Browse files Browse the repository at this point in the history
  • Loading branch information
jkdowdle authored Feb 6, 2024
2 parents 0cbbc05 + 466e963 commit 08b14a4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/common/RootProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { useDeveloperConfig } from '../hooks/useDeveloperConfig';
import { BrandConfigProvider } from '../components/BrandConfigProvider';
import { NoInternetToastProvider } from '../hooks/NoInternetToastProvider';
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import {
SafeAreaProvider,
SafeAreaProviderProps,
} from 'react-native-safe-area-context';
import { ThemedNavigationContainer } from './ThemedNavigationContainer';
import { LoggedInProviders } from './LoggedInProviders';
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
Expand All @@ -21,12 +24,14 @@ const queryClient = new QueryClient();
export type RootProvidersProps = {
account: string;
authConfig: AuthConfiguration | AuthConfigGetter;
safeAreaProviderProps?: SafeAreaProviderProps;
children?: React.ReactNode;
};

export function RootProviders({
account,
authConfig,
safeAreaProviderProps,
children,
}: RootProvidersProps) {
const { apiBaseURL, theme, brand } = useDeveloperConfig();
Expand All @@ -41,7 +46,7 @@ export function RootProviders({
<BrandConfigProvider theme={theme} {...brand}>
<NoInternetToastProvider>
<ActionSheetProvider>
<SafeAreaProvider>
<SafeAreaProvider {...safeAreaProviderProps}>
<ThemedNavigationContainer>
<Toast />
<LoggedInProviders>
Expand Down

0 comments on commit 08b14a4

Please sign in to comment.