···91919292For React Native, we can use the async storage package `@urql/storage-rn`.
93939494-Before installing the [library](https://github.com/FormidableLabs/urql/tree/main/packages/storage-rn), ensure you have installed the necessary peer dependencies: NetInfo ([RN](https://github.com/react-native-netinfo/react-native-netinfo) | [Expo](https://docs.expo.dev/versions/latest/sdk/netinfo/)) and AsyncStorage ([RN](https://react-native-async-storage.github.io/async-storage/docs/install) | [Expo](https://docs.expo.dev/versions/v42.0.0/sdk/async-storage/)).
9494+Before installing the [library](https://github.com/FormidableLabs/urql/tree/main/packages/storage-rn), ensure you have installed the necessary peer dependencies:
9595+- NetInfo ([RN](https://github.com/react-native-netinfo/react-native-netinfo) | [Expo](https://docs.expo.dev/versions/latest/sdk/netinfo/)) and
9696+- AsyncStorage ([RN](https://react-native-async-storage.github.io/async-storage/docs/install) | [Expo](https://docs.expo.dev/versions/v42.0.0/sdk/async-storage/)).
9797+9898+```sh
9999+yarn add @urql/storage-rn
100100+# or
101101+npm install --save @urql/storage-rn
102102+```
103103+104104+You can then create the custom storage and use it in the offline exchange:
105105+9510696107```js
97108import { makeAsyncStorage } from '@urql/storage-rn';
+2-2
packages/storage-rn/README.md
···1111Install `@urql/storage-rn` alongside `urql` and `@urql/exchange-graphcache`:
12121313```sh
1414-yarn add @urql/graphcache-rn-async-storage
1414+yarn add @urql/storage-rn
1515# or
1616-npm install --save @urql/graphcache-rn-async-storage
1616+npm install --save @urql/storage-rn
1717```
18181919Then add it to the offline exchange: