Skip to content

Commit 0d3c55d

Browse files
FillipeDiordimdevan
authored andcommitted
refactor: 💡 Replaced the deprecated SafeAreaView from react-nat
Replaced the deprecated SafeAreaView from react-native with the one from react-native-safe-area-context to ensure compatibility with newer versions and proper safe area handling.
1 parent 17cc712 commit 0d3c55d

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

package-lock.json

Lines changed: 12 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"peerDependencies": {
6767
"react": "*",
6868
"react-native": "*",
69-
"react-native-gesture-handler": "*"
69+
"react-native-gesture-handler": "*",
70+
"react-native-safe-area-context": "*"
7071
}
7172
}

src/components/Picker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ import {
1616
Image,
1717
Modal,
1818
Platform,
19-
SafeAreaView,
2019
StyleSheet,
2120
Text,
2221
TextInput,
2322
TouchableOpacity,
2423
View,
2524
} from 'react-native';
2625

26+
import { SafeAreaView } from 'react-native-safe-area-context';
27+
2728
import { FlatList, ScrollView } from 'react-native-gesture-handler';
2829
import {
2930
ASCII_CODE,

0 commit comments

Comments
 (0)