Description
React Native 0.81+ has deprecated the built-in SafeAreaView component. When using react-native-notifier, the following warning appears:
SafeAreaView has been deprecated and will be removed in a future release.
Please use 'react-native-safe-area-context' instead.
Affected Files
src/components/Alert.tsx - imports SafeAreaView from react-native
src/components/Notification.tsx - imports SafeAreaView from react-native
Suggested Fix
Replace the SafeAreaView import from react-native with the one from react-native-safe-area-context:
- import { SafeAreaView, ... } from 'react-native';
+ import { ... } from 'react-native';
+ import { SafeAreaView } from 'react-native-safe-area-context';
Environment
- React Native: 0.81.5
- Expo SDK: 54
- react-native-notifier: 2.0.0