Skip to content

Instantly share code, notes, and snippets.

@emanueleDiVizio
Created June 8, 2020 14:49
Show Gist options
  • Save emanueleDiVizio/8fffbe067f53640edbd08d804270d41c to your computer and use it in GitHub Desktop.
Save emanueleDiVizio/8fffbe067f53640edbd08d804270d41c to your computer and use it in GitHub Desktop.
import { all } from 'redux-saga/effects';
import saga1 from './saga1';
import saga2 from './saga2';
import { networkSaga } from 'react-native-offline';
export default function* rootSaga(): Generator<*, *, *> {
yield all([
fork(saga1),
fork(saga2),
fork(networkSaga, { pingInterval: 20000 }),
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment