Offline Tweet
May 20, 2018 ยท View on GitHub
Write tweets even when the device is offline, once connectivity is regained, tweets will be posted live. React Native example project for how to setup redux-offline-queue
Setup
- Git clone this repo.
- Intall the app with
yarn intall - Link libraries
react-native link - Create twitter app via apps.twitter.com NOTE: Once you have created the twitter app, make sure to generate access tokens in the twitter app -> Keys and Access Tokens -> scroll to bottom -> click 'Create my access token'.
- Rename
app/config/tokens.js.exampletoapp/config/tokens.jsand fill in your own tokens and secrets. - Start the server
yarn startstart your simulator or device.
IMPORTANT NOTE: If app is killed the offline messages wont be delivered. Set up redux-persist to persist the store and post even after app has been killed.