React-native: Cannot clear data with AsyncStorage

Created on 12 Dec 2017  Â·  6Comments  Â·  Source: facebook/react-native

The implementation is straightforward, calling clear with await.
But the data is not deleted even is the app is unistalled ???

async clearStorage() {
try {
await AsyncStorage.clear();
} catch (error) {
}
}

Any workaround for this?

AsyncStorage Ran Commands Locked

Most helpful comment

Are you kidding me ?

All 6 comments

@facebook-github-bot no-template

Hey @tirrorex, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to Contribute • What to Expect from Maintainers

Are you kidding me ?

@tirrorex Were you able to resolve issue ? I too am facing the same when debugging.

@harshrajk probably but no idea how, sorry mate

I'm seeing this after updating to 0.57. I'm just working around it by manually resetting all my data but it's odd that it fails without giving back any error.

Was this page helpful?
0 / 5 - 0 ratings