Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

(docs) - update storage-rn installation instructions (#2069)

* Update storage-rn installation instructions

* Tweak wording

authored by

Kadi Kraman and committed by
GitHub
d7edaefe 4fa44e59

+14 -3
+12 -1
docs/graphcache/offline.md
··· 91 91 92 92 For React Native, we can use the async storage package `@urql/storage-rn`. 93 93 94 - 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/)). 94 + Before installing the [library](https://github.com/FormidableLabs/urql/tree/main/packages/storage-rn), ensure you have installed the necessary peer dependencies: 95 + - NetInfo ([RN](https://github.com/react-native-netinfo/react-native-netinfo) | [Expo](https://docs.expo.dev/versions/latest/sdk/netinfo/)) and 96 + - 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/)). 97 + 98 + ```sh 99 + yarn add @urql/storage-rn 100 + # or 101 + npm install --save @urql/storage-rn 102 + ``` 103 + 104 + You can then create the custom storage and use it in the offline exchange: 105 + 95 106 96 107 ```js 97 108 import { makeAsyncStorage } from '@urql/storage-rn';
+2 -2
packages/storage-rn/README.md
··· 11 11 Install `@urql/storage-rn` alongside `urql` and `@urql/exchange-graphcache`: 12 12 13 13 ```sh 14 - yarn add @urql/graphcache-rn-async-storage 14 + yarn add @urql/storage-rn 15 15 # or 16 - npm install --save @urql/graphcache-rn-async-storage 16 + npm install --save @urql/storage-rn 17 17 ``` 18 18 19 19 Then add it to the offline exchange: