-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native example #9
Comments
Is there a maintained uptodate MobX React Native boilerplate? If so, I would send a PR to include DevTools there. Like https://github.com/chentsulin/react-native-counter-ios-android for Redux. Last time I was checking, most of boilerplates was either outdated or didn't work at all. |
Hopefully, I found one which was just updated. Though it still has some issues with android, I got it run for iOS. You can try it from here. The integration is really simple. |
Yep, I threw together a quick sample using https://github.com/jamesholcomb/mobx-remotedev/tree/master/examples/react-native-counter I can send a PR to his repo if you don't want it. |
@jamesholcomb, does it work for Android? I also saw some warnings when running on iOS (though it was working fine). I don't mind having here an example for React Native, but someone should maintain it, keeping uptodate everytime React Native has something new. I'm not using MobX on React Native yet. So, better to contribute to a boilerplate. |
Have not tested on Android. I cloned your repo and got the same warnings about synthetic events. Were you using the Remote DevTools chrome extension? I could not get any instances to appear that way. My example resorted to using |
@jamesholcomb, yes, I tried it with the extension, and it works. You should open Remote DevTools window. It should work with |
@jamesholcomb, when you'll have a chance to try it again, please let me know whether it works that way. Additionally you could use the web monitor. That React synthetic events warning comes from |
Is there an advantage to using the extension over the UI debugger integration? Thanks for pointing out the issue with |
All of them use |
I tried the repo of yours. |
@lulutia what's your version of mobx, RN? But I tried on android(genymotion), it doesnot work. mobx 3.0 RN 0.40 In these commits, commit add mobx-remotedev · HaveF/mobx-react-native-template-remotedev@fe9b577 cause the problem, but the previous commit has no problem. suspect it is the problem of |
Regarding |
@zalmoxisus thanks your advice, I will redo the android test after #14 is resolved |
@zalmoxisus iOS version is total fine(using Then I try set remotedev-server to local. android
It seems the client iOS with remotedev-server in localOnly display remotedev panel, but do not display action in web browser and no warning message in browser console. Have any idea I can try? |
Try
|
Yes, not only settings, but other parts of Material UI from umd build as well. We'll get rid of it in the next version of |
ok...let me restatement all these things. use http://remotedev.io/local/ios worksandroid not works --> socket hung upyou said I should use local remotedev to debug use local remotedevios not worksthe ui did not display action android not worksno I already enter a infinite loop... |
@HaveF, you wrote in #14 (comment) that the issue with actions was solved, not? The web app from |
@jhen0409 Thanks for trying to help me out. But others not works. Let's solve the ios first. Because it is can run at When using local remotedev.
Btw, I use hands-off to manage my network. When run ios and use |
Ahh, sorry I didn't check carefully, you should set |
With those 2 changes I got it working for iOS: Note that in the first case I'm using |
@zalmoxisus actually I also do this in reactotron. 😆 Make it as a repo might be better? Do you agree? /cc @skellock |
@jhen0409, yes, it makes sense, also to maintain React Native changes in one place. |
I'm on board with what you guys decide. You're on top of this much more than I am, and often you two guys write my code for me ❤️ . Sometimes I'll go on a long sad debugging journey and end up with a discussion between you guys on a github issue with a solution. From last year. Not unlike this thread. Lemme know what I can do to help or follow you. |
@jhen0409 @zalmoxisus |
@HaveF, no problem. Feel free to submit a PR if you think the docs can be improved. Also we could add a link to your repo, as an example for React Native, if you plan to maintain it. Or maybe submit those changes to the upstream to add it. |
I do like to maintain it as a separate repo only for mobx-remotedev. |
Anyone have a working example?
The text was updated successfully, but these errors were encountered: