Skip to content

Switch to @react-native-community/async-storage.#29

Open
bengtan wants to merge 1 commit intoarronhunt:masterfrom
bengtan:new-async-storage
Open

Switch to @react-native-community/async-storage.#29
bengtan wants to merge 1 commit intoarronhunt:masterfrom
bengtan:new-async-storage

Conversation

@bengtan
Copy link
Copy Markdown

@bengtan bengtan commented Jan 16, 2020

Importing AsyncStorage from react-native is deprecated. This is the replacement.

Please test this yourself before merging. I didn't test it because I don't know how to test a react native component in isolation.

@arronhunt
Copy link
Copy Markdown
Owner

Hey @bengtan

I need some additional support here before I can merge this in. AsyncStorage is bundled with RN via Expo still and the community repo requires linking which we can't do in ejected apps. I'm not sure if there's a way to support both expo and ejected applications...this is a bit above my skill level.

@bengtan
Copy link
Copy Markdown
Author

bengtan commented Feb 13, 2020

Uh, sorry, I don't know anything about expo. I've heard of it, but I've not tried using it.

If this is too troublesome, feel free to postpone it indefinitely.

@jeppan875
Copy link
Copy Markdown

How is it going with this? I want to use this package in RN web project

@arronhunt
Copy link
Copy Markdown
Owner

@jeppan875 I just added this to the v1.0.0 roadmap (#49). This will be an optional feature that will require linking for some projects.

@defrex
Copy link
Copy Markdown

defrex commented Jun 22, 2021

FWIW, Expo recommends @react-native-async-storage/async-storage for a non-deprecated alternative. That library doesn't require any additional linking.

https://docs.expo.io/versions/latest/sdk/async-storage/

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants