10

I want to use redux devtools on our react-native app that's using react-native 0.67.1 and hermes.

I don't mind using any known tools (like react-native-debugger, or flipper), but I was blocked on pretty much all of my attempts by various issues so far.

The community is currently on a weird state where:

  • react-native-debugger doesn't work with hermes
  • flipper gives us Plugin ... is unavailable errors, and it feels like those plugins have been abandoned
  • redux-devtools has moved their packages (@redux-devtools) without really providing great docs for react-native projects (does it even work with react-native?)
  • remote-redux-devtools (which we had success with in the past) has been abandoned

Is there any way to use redux devtools with a hermes react-native a on 2022?

Here's our code:

    const enhancer = composeWithDevTools(
        applyMiddleware(createDebounce(), thunk, acuityMiddlewareCreator),
        // devTools(remoteDevToolsConfig),
    );
    const store = createStore(persistedReducer, initialState, enhancer);

SudoPlz
  • 20,996
  • 12
  • 82
  • 123
  • What did you end up using in the end? – RaideR Apr 24 '23 at 09:37
  • @RaideR I just posted an answer, check it out. – SudoPlz Apr 24 '23 at 17:16
  • Thanks mate. Unfortunately I cannot use Flipper because its not compatible with react-native-firebase and its `use_framworks`. Appreciate your answer though :-). – RaideR Apr 25 '23 at 07:34
  • 1
    @RaideR we are using flipper with react-native-firebase. Here's our podfile in case it helps. https://gist.github.com/SudoPlz/28c844b32031f81c34fd029efa9a1ddf – SudoPlz May 05 '23 at 19:38

2 Answers2

1

We ended up using Redux Debugger Plugin for Flipper

We're not REALLY into flipper, but it looks like it get's the job done for us and it's stable. enter image description here

SudoPlz
  • 20,996
  • 12
  • 82
  • 123
0

I would consider using https://github.com/infinitered/reactotron, it's very similaire to react native debugger, it has redux devtools I hope you will like it :)

  • 2
    We've used it in the past but it's different from redux devtools, and it's running very slow on our devices. It's super slow to get a snapshot of the state, and to be honest I prefer redux devtools. Thanks for the suggestion though. – SudoPlz Feb 02 '22 at 18:10
  • 2
    It's an outdated repo and doesn't support M1 Apple Silicon by default – Mehdi Nourollah Mar 27 '23 at 10:37