Skip to content

SafeAreaView imported from react-native #5189

@eridr

Description

@eridr

What React Native libraries do you use?

Expo (mobile only)

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.1.0

How does your development environment look like?

SafeAreaView is deprecated. Use react-native-safe-area-context instead.

https://reactnative.dev/docs/safeareaview

SafeAreaView imported from react-native

⚠️ react-native depends on @react-native-community/cli for cli commands. To fix update your package.json to include:


  "devDependencies": {
    "@react-native-community/cli": "latest",
  }

Sentry.init()

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

Steps to Reproduce

Start the expo application with sentry 7.1.0

View the warning logged in the terminal. Happens 100% of the time.

Expected Result

Not any warning logs to appear

Actual Result

WARN  SafeAreaView has been deprecated and will be removed in a future release. Please use 'react-native-safe-area-context' instead. See https://github.com/th3rdwave/re
    act-native-safe-area-context

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions