File tree Expand file tree Collapse file tree 1 file changed +18
-17
lines changed
Expand file tree Collapse file tree 1 file changed +18
-17
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import { LogBox , StatusBar } from "react-native" ;
33import { GestureHandlerRootView } from "react-native-gesture-handler" ;
4- import { SafeAreaProvider , SafeAreaView } from "react-native-safe-area-context" ;
5- import { AdaptUIProvider } from "@adaptui/react-native-tailwind" ;
4+ import { SafeAreaProvider } from "react-native-safe-area-context" ;
5+ import { AdaptUIProvider , Box } from "@adaptui/react-native-tailwind" ;
66import { NavigationContainer } from "@react-navigation/native" ;
77import tailwind from "twrnc" ;
88
99import AppRoot from "./AppRoot" ;
1010
1111LogBox . ignoreAllLogs ( ) ;
1212
13+ const AdaptUIApp = ( ) => {
14+ return (
15+ < Box style = { tailwind . style ( "flex-1" ) } >
16+ < StatusBar
17+ translucent
18+ backgroundColor = { "transparent" }
19+ barStyle = "dark-content"
20+ />
21+ < AdaptUIProvider >
22+ < AppRoot />
23+ </ AdaptUIProvider >
24+ </ Box >
25+ ) ;
26+ } ;
27+
1328const App = ( ) => {
1429 return (
1530 < GestureHandlerRootView style = { tailwind . style ( "flex-1" ) } >
1631 < NavigationContainer >
1732 < SafeAreaProvider >
18- < SafeAreaView
19- style = { tailwind . style (
20- `flex-1 android:mt-[${ StatusBar . currentHeight || 0 } px]` ,
21- ) }
22- edges = { [ "bottom" ] }
23- >
24- < StatusBar
25- translucent
26- backgroundColor = { "transparent" }
27- barStyle = "dark-content"
28- />
29- < AdaptUIProvider >
30- < AppRoot />
31- </ AdaptUIProvider >
32- </ SafeAreaView >
33+ < AdaptUIApp />
3334 </ SafeAreaProvider >
3435 </ NavigationContainer >
3536 </ GestureHandlerRootView >
You can’t perform that action at this time.
0 commit comments