1.0.0 • Published 5 months ago

redux-saga-devtools-expo-dev-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

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.