Skip to content

Raven-js AsyncStorage deprecation warning. #2220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 of 9 tasks
jckw opened this issue Aug 29, 2019 · 1 comment
Closed
4 of 9 tasks

Raven-js AsyncStorage deprecation warning. #2220

jckw opened this issue Aug 29, 2019 · 1 comment

Comments

@jckw
Copy link

jckw commented Aug 29, 2019

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Description

When using this package in React Native (via react-native-sentry), there are warnings shown about using AsyncStorage from react-native as opposed to @react-native-community/async-storage.

Warning: Async Storage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. See https://github.com/react-native-community/react-native-async-storage

Importing from both react-native and @react-native-community/async-storage creates a race condition between the packages which can cause hard to debug issues.

This could probably be resolved fairly easily by changing the dependencies to include @react-native-community/async-storage and the RN plugin.

@HazAT
Copy link
Member

HazAT commented Sep 2, 2019

We highly recommend ppl to use our react native SDK instead of using raven-js.
Please see and use @sentry/react-native getsentry/sentry-react-native#612

@HazAT HazAT closed this as completed Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants