A Redux Saga DevTool for React Native Expo applications
npx expo install redux-saga-devtools-expo-dev-plugin
import createSagaMiddleware from 'redux-saga';
let sagaMiddleware = createSagaMiddleware();
if (__DEV__) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { createSagaMonitor } = require('redux-saga-devtools-expo-dev-plugin');
sagaMiddleware = createSagaMiddleware({ sagaMonitor: createSagaMonitor() });
}
const store = configureStore({
reducer: rootReducer,
devTools: false,
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(sagaMiddleware),
});
- Check out our other available awesome mobile libraries
- This Plugin was inspired by reactotron-redux-saga provided in infinitered, which is now deprecated. We acknowledge the valuable work of the original authors and have built upon their foundation while making updates and improvements to support expo.