Skip to main content

Installation

Get library#

With npm:

npm install @react-native-async-storage/async-storage

With Yarn:

yarn add @react-native-async-storage/async-storage

With Expo CLI:

expo install @react-native-async-storage/async-storage

Link#

Android & iOS#

  • React Native 0.60+

CLI autolink feature links the module while building the app.

On iOS, use CocoaPods to add the native RNAsyncStorage to your project:

npx pod-install
  • React Native <= 0.59
react-native link @react-native-async-storage/async-storage

Windows#

macOS#

  • React Native macOS >= 0.63
  1. Set platform :macos, '10.14' in macos/Podfile
  2. Install the pods
  3. From now on CLI autolink feature will link the module while building the app.
  • React Native Windows <= 0.62 For earlier versions check manual linking