Skip to content

SafeAreaView deprecation warning - migrate to react-native-safe-area-context #111

Description

@joaqo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions