react-native-fetch-offline
Returns fetch object with cached data if user is offline
Installation
npm install --save react-native-fetch-offline # with npm
yarn add react-native-fetch-offline # with yarn
Link react-native-internet-reachability
react-native link react-native-internet-reachability
How it works
How to use
; const requestOptions = method: 'GET' offline: defaultResponse: data: myKey: 'myValue' ; ;