Skip to content
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

Import AsyncStorage from @react-native-async-storage to silence warning #17

Merged
merged 1 commit into from Jul 2, 2023

Conversation

thraizz
Copy link

@thraizz thraizz commented Mar 23, 2022

This pull request aims to replace the deprecated import from react-native with the new package @react-native-async-storage.

I am not sure whether we need to add react-native to the dependencies as well or why it was not listed before.

"homepage": "https://github.com/manicakes/react-native-icloudstore#readme"
"homepage": "https://github.com/manicakes/react-native-icloudstore#readme",
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand things right, this should be under peerDependencies, not dependencies.
Like this:
hsjoberg@a68dc9c#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R24

@hsjoberg
Copy link

hsjoberg commented Jul 2, 2023

@manicakes Please merge this pull request.
Newer versions of react-native will fail to build now because AsyncStorage has been dropped from core.

@manicakes manicakes merged commit 20f2010 into manicakes:master Jul 2, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants