Ok, I see.
@johanneslumpe Any chance I could get you to port the internal prototype you did to this stable code version? Shouldn't require many changes I think..
Yeah I'll try and take a look asap :)
@gaearon I have used the redux in a react-native app---noder, But I have some problems:
@soliury
This is a repository for Redux DevTools, not for Redux. Can you please ask these questions in the main Redux repo?
ok, I see.
Any updates on this one? @johanneslumpe anything you're stuck with that may need help?
Yes, this would help out tremendously!
:+1:
Anybody working on this? If not, we might take a look into it as we are going to release new este/native with Redux, cc: @steida
If you need any help let me know!
Good, we kinda need it for WebExpo conference this weekend, so will keep you updated :)
Yeah, we should help.
Note: changes in #132 will make it harder to make an RN version until React 0.14 comes out and React Native releases a compatible update. 0.14 is coming soon, so I'd expect #132 to land about the same time it's ready. In the meantime feel free to experiment with the current (2.x) version which should be easier to get running with RN.
Learning RN and Redux looks amazing. I'm eager to test this!
any news on this?
No news but feel free to work on this.
I personally don't have the time right now.
As a heads up to all on this thread. I'm a long time dev, but new to React. If someone thinks they can get me pointed in the right direction with minimum screenshare training, I'll put the time in to try to get this going. :beers:
I think the most promising way to support this would be to try to make the Redux DevTools Chrome extension to play with React Native.
Unfortunately DevTools currently uses React Redux 4.x which is incompatible with React Native as it still has its own fork of React. I can't give much more advice than that. I'm sure you'll figure something out if you give it some time :-)
so we should accelerate react native's transition to using the regular react package instead of a fork? that's what's blocking this?
There's actually nothing to accelerate since that's ongoing issue and it's going to land super soon. (Afaik)
Implemented in remote-redux-devtools.
@zalmoxisus's solution works great. It would be ideal to merge his changes into the base redux-devtools though.
@corbt, actually, I didn't make any changes in redux-devtools, I use the original redux-devtools/instrument there.
The remote monitoring is meant to be used for React Native, hybrid, desktop and server side apps. For web apps it's easier and way faster to use the classical solution or Chrome extension (in v1.0 we'll have remote monitoring there, but as an option).
@zalmoxisus ok, I guess as long as any changes/enhancements to the instrumentation are available to the redux-remote-devtools as well it isn't a big deal if we have to use a separate package in RN vs webapps.
A quick update for those wondering/got here by Google:
The Chrome extension seems to be working with React Native now. Requires npm install --save-dev remote-redux-devtools and pressing the toolbar button and using "Open Remote DevTools".
It's not bug-free (it looses the connection when the app is reloaded) but it works for now. One annoying issue is that you need to reload the DevTools when the app reloads (it loses connection).
@scarlac, that issue should be fixed. Thanks for the report.
BTW, apart from the extension there's a great ecosystem around this. You can have Redux DevTools right on React Native Debugger. Or there's a React Native Debugger, which includes both Redux DevTools and React DevTools.
I use React Native Debugger with the following code and it works perfectly with react-native 0.40.0 (even on Windows), no need to install anything else:
if (__DEV__) {
// Development mode with Redux DevTools support enabled.
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
// Prevents Redux DevTools from re-dispatching all previous actions.
shouldHotReload: false
}) : compose;
// Create the redux store.
store = createStore(rootReducer, composeEnhancers(...enhancers));
} else {
// Production mode.
store = createStore(rootReducer, compose(...enhancers));
}
just a heads up, we've been using this forever in React Native. If you're a fan of dev tools for redux, this is my fav.
ok great sounds like we can use redux-devtools with RN, this issue can be closed
Most helpful comment
I use React Native Debugger with the following code and it works perfectly with
react-native 0.40.0(even on Windows), no need to install anything else: