Skip to main content

Installation

Install

With npm:

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

With Yarn:

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

With Expo CLI:

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

Android & iOS

Requires 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

Windows

Requires React Native Windows 0.63+

CLI autolink feature links the module while building the app.

macOS

Requires 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.