This is very quickly solution for fix issue https://github.com/facebook/react-native/issues/14101
npm install rn-async-storageJust replace
``javascript`
import {AsyncStorage} from 'react-native'`
to
javascript`
import AsyncStorage from 'rn-async-storage'
.. thats all! :)
For ios you can use all function of AsyncStorage
If you need other methods from AsynStorage let me know
For ios you can use all function from AsynStorage
or
$ yarn add rn-async-storage$3
$ react-native link rn-async-storage$3
#### Android
1. Open up
android/app/src/main/java/[...]/MainApplication.java
- Add import org.gamega.RNAsyncStoragePackage; to the imports at the top of the file
- Add new RNAsyncStoragePackage() to the list returned by the getPackages() method
2. Append the following lines to android/settings.gradle:
`
include ':rn-async-storage'
project(':rn-async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/rn-async-storage/android')
`
3. Insert the following lines inside the dependencies block in android/app/build.gradle:
`
compile project(':rn-async-storage')
``