react-native-emoji-selector icon indicating copy to clipboard operation
react-native-emoji-selector copied to clipboard

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

Open bengtan opened this issue 5 years ago • 5 comments

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.

bengtan avatar Jan 16 '20 05:01 bengtan

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.

arronhunt avatar Feb 12 '20 19:02 arronhunt

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.

bengtan avatar Feb 13 '20 03:02 bengtan

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

jeppan875 avatar Apr 28 '21 09:04 jeppan875

@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.

arronhunt avatar May 10 '21 00:05 arronhunt

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/

defrex avatar Jun 22 '21 18:06 defrex