ignite-router-flux
Version:
Infinite Red's hot boilerplate for React Native.
11 lines (9 loc) • 324 B
JavaScript
import { put, select } from 'redux-saga/effects'
import { is, call } from 'ramda'
import { Actions, ActionConst } from 'react-native-router-flux'
import { delay } from 'redux-saga'
// process STARTUP actions
export function * startup (action) {
yield delay(1000)
yield call(Actions.root, { type: ActionConst.RESET })
}