Wire providers into layout
This commit is contained in:
@@ -5,16 +5,20 @@ import { HeroUINativeProvider } from "heroui-native";
|
||||
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
||||
|
||||
import "../global.css";
|
||||
import { WalletProvider } from "@/state/wallet";
|
||||
import { ModalProvider } from "@/state/modals";
|
||||
|
||||
export default function RootLayout(): JSX.Element {
|
||||
return (
|
||||
<GestureHandlerRootView style={{ flex: 1 }}>
|
||||
<HeroUINativeProvider
|
||||
config={{ devInfo: { stylingPrinciples: false } }}
|
||||
>
|
||||
<Stack screenOptions={{ headerShown: false }}>
|
||||
<Stack.Screen name="(tabs)" />
|
||||
</Stack>
|
||||
<HeroUINativeProvider config={{ devInfo: { stylingPrinciples: false } }}>
|
||||
<WalletProvider>
|
||||
<ModalProvider>
|
||||
<Stack screenOptions={{ headerShown: false }}>
|
||||
<Stack.Screen name="(tabs)" />
|
||||
</Stack>
|
||||
</ModalProvider>
|
||||
</WalletProvider>
|
||||
<StatusBar style="auto" />
|
||||
</HeroUINativeProvider>
|
||||
</GestureHandlerRootView>
|
||||
|
||||
Reference in New Issue
Block a user