Skip to content

Commit

Permalink
fix(example-app): 🚑 wrap <SafeAreaView/> inside <SafeAreaProvider/>
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-B-06 committed Dec 27, 2022
1 parent bbe5756 commit 62284d9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const App = () => {
return (
<GestureHandlerRootView style={tailwind.style("flex-1")}>
<NavigationContainer>
<SafeAreaView
style={tailwind.style(
`flex-1 android:mt-[${StatusBar.currentHeight || 0}px]`,
)}
edges={["bottom"]}
>
<SafeAreaProvider>
<SafeAreaProvider>
<SafeAreaView
style={tailwind.style(
`flex-1 android:mt-[${StatusBar.currentHeight || 0}px]`,
)}
edges={["bottom"]}
>
<StatusBar
translucent
backgroundColor={"transparent"}
Expand All @@ -29,8 +29,8 @@ const App = () => {
<AdaptUIProvider>
<AppRoot />
</AdaptUIProvider>
</SafeAreaProvider>
</SafeAreaView>
</SafeAreaView>
</SafeAreaProvider>
</NavigationContainer>
</GestureHandlerRootView>
);
Expand Down

0 comments on commit 62284d9

Please sign in to comment.