Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.47 KB

File metadata and controls

47 lines (30 loc) · 1.47 KB

redux-saga-devtools-expo-dev-plugin

A Redux Saga DevTool for React Native Expo applications

Installation

Add the package to your project

npx expo install redux-saga-devtools-expo-dev-plugin

Integrate redux saga with the DevTool hook

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),
});

🎬 Preview

ReduxSagaDevTools

Awesome Mobile Libraries

License

Credits and Inspiration

  • 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.