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
Link
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+
- Set
platform :macos, '10.14'
inmacos/Podfile
- Install the pods
- From now on CLI autolink feature will link the module while building the app.