Files
react-navigation/examples/NavigationPlayground
alex clifton 445dcfcdf2 unhandled promise rejection failed to delete storage directory (#5727)
with:

await AsyncStorage.clear();

I'm getting this in ios:

unhandled promise rejection failed to delete storage directory

found this:

https://stackoverflow.com/questions/46736268/react-native-asyncstorage-clear-is-failing-on-ios

switched to use this instead:

await AsyncStorage.getAllKeys().then(AsyncStorage.multiRemove)

but that causes unhandled promise rejection in android.

this is working:

Platform.OS === 'ios' ? await AsyncStorage.getAllKeys().then(AsyncStorage.multiRemove) : await AsyncStorage.clear()
2019-03-22 11:13:05 -07:00
..
2019-03-15 10:32:37 -07:00

Navigation Playground Example

The NavigationPlayground example app includes a variety of patterns and is used as a simple way for contributors to manually integration test changes.

Usage

yarn # in the react-navigation root directory
cd examples/NavigationPlayground
yarn
yarn start

You can view this example application directly on Android phones by visiting scanning the QR code on this site with the Expo app.