-
Notifications
You must be signed in to change notification settings - Fork 473
[iOS] Cannot get data set by react-native's AsyncStorage #40
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
Comments
I create sample counter app using this App.js. Here is desktop recording and operation logs.
|
Hi @ohnishiakira , thanks for your input! I believe this is because we've changed the name of a directory, where data is being saved. I cannot test it right now, but I'd like to see if it's the case. |
@krizzu , I think this bug is very serious. Can you release new version soon? |
Hey @thientnc-ibl Sure, but first, we have to discuss a way to add backward compatibility - maybe add a feature that allows different db/directory name. |
What is the reason for the directory name change? I guess everyone who migrates from React Native's AsyncStorage expects the old data to be accessible, so shouldn't the default name of the directory be the same as before? |
That must have been the whirlwind of changes I did while detaching from RN Core. Let me know if anyone would like to work on it or should I do it. Thanks. |
🎉 This issue has been resolved in version 1.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Current behavior
Expected behavior
Repro steps
react-native init Sample --version 0.59.0
yarn add @react-native-community/[email protected]
AsyncStorage
inreact-native
and set data usingAsyncStorage.setItem
AsyncStorage
in@react-native-community/async-storage
and get data usingAsyncStorage.getItem
Environment
The text was updated successfully, but these errors were encountered: