react-native init Sample --version 0.59.0yarn add @react-native-community/[email protected]AsyncStorage in react-native and set data using AsyncStorage.setItemAsyncStorage in @react-native-community/async-storage and get data using AsyncStorage.getItemI create sample counter app using this App.js.
https://gist.github.com/ohnishiakira/212d82ae68396b7b9b5f40d41ab63de7
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.
I'm happy to revert it back, merge and release it, then think about adding a feature to change it in the future.
Let me know if anyone would like to work on it or should I do it.
Thanks.
:tada: This issue has been resolved in version 1.2.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Most helpful comment
That must have been the whirlwind of changes I did while detaching from RN Core.
I'm happy to revert it back, merge and release it, then think about adding a feature to change it in the future.
Let me know if anyone would like to work on it or should I do it.
Thanks.