Continued support for AsyncStorage
complete
Brent Vatne
complete
you can install @react-native-community/async-storage in expo managed apps as of @react-native-community/async-storage@1.11.0
Alexandre Boucher
Any news on this? It's been some time now since AsyncStorage has been deprecated. New React-Native Web version 0.12.x requires usage of the @react-native-community/react-native-async-storage library, since React Native AsyncStorage is no longer supported.
Arshia Boorboor
Alexandre Boucher: Yes I am having same problem here. I came from here: https://stackoverflow.com/questions/55311228/how-to-remove-warning-async-storage-has-been-extracted-from-react-native-core/55311388
Wodin
Merged in a post:
Include @react-native-community/async-storage
Nicholas Ferrara
In React Native 0.60 importing async storage directly from react native is deprecated and a lot of dependencies are moving to the new import. Would be great if expo supported this ASAP so we can upgrade those dependencies to the latest version.
Brent Vatne
in progress
Brent Vatne
we will either fork it and create our own version of asyncstorage or include the community version when we release sdk34. sdk33 will continue to include asyncstorage and you will not receive any warnings for using it
Rommel Manalo
Brent Vatne: I'm not sure if it's just me, but when i used SDK33 all my AsyncStorage are failing. From the errors, it seems that it was removed from this forked https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz
Brent Vatne
Rommel Manalo: perhaps you're using it wrong? https://snack.expo.io/@notbrent/excited-popsicle
Rommel Manalo
Brent Vatne: or maybe the issue is on upgrading from sdk3w. I tried with fresh sdk33 and you are right it is working. When i upgrade from 32 and commented all import from asyncstorage and the codes that uses async storage, my app works again but if is there my app fails compiling/babeling. Maybe babel-preset-expo problem,
I just blame asyncstorage because when there is an import with async storage from react-native it fails
rub1e
Rommel Manalo: could you share how you got this working with a fresh SDK33 please? The Snack Brent shared works fine for me, but nothing I do to my own app gets asyncstorage working again
Any guidance much appreciated!
rub1e
Never mind - after the 10th time I cleared everything and reinstalled, it "just worked"
Z
Zach Lanich
What would be the alternative if it was removed from core? Would it require linking to install it separately?
Rajendran Nadar
Zach Lanich: The core version is deprecated and not remove. Probably it will be removed in RN0.61. And keep in mind expo uses RN fork so there won't be any issues.