Skip to content

Commit 13946d7

Browse files
committed
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 09c6364 commit 13946d7

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
@@ -44,7 +44,8 @@
4444
"main": "index.js",
4545
"types": "index.d.ts",
4646
"dependencies": {
47-
"react-native-gesture-handler": "~2.13.1"
47+
"react-native-gesture-handler": "~2.13.1",
48+
"react-native-safe-area-context": "^5.6.1"
4849
},
4950
"devDependencies": {
5051
"@types/react": "^18.2.25",

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)