Skip to content

Commit b704a67

Browse files
committed
safeareaview to fix back button layout issue in ios
1 parent 8a670f7 commit b704a67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/src/App.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from 'react-native';
1919
import {
2020
SafeAreaProvider,
21-
useSafeAreaInsets,
21+
SafeAreaView,
2222
} from 'react-native-safe-area-context';
2323

2424
import RNSketchCanvas, {
@@ -1076,7 +1076,9 @@ function AppWrapper() {
10761076
return (
10771077
<SafeAreaProvider>
10781078
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
1079-
<ExampleApp />
1079+
<SafeAreaView style={{ flex: 1 }} edges={['top', 'bottom']}>
1080+
<ExampleApp />
1081+
</SafeAreaView>
10801082
</SafeAreaProvider>
10811083
);
10821084
}

0 commit comments

Comments
 (0)