Usage with Expo
See original GitHub issue** Please ensure:
- I’m using the latest version of react-native-debugger
- I have read README.md
** Please provide the following information if you found some bugs or have question:
React Native version: Expo SDK 17 Platform: Android Is real device of platform: No Operating System: Arch Linux
I’m trying to get react-native-debugger to work with Expo and my genymotion android device, without success so far. When running the debugger, it will always listen on a random port, and I cannot figure out a way to tell expo and react-native-debugger to agree on the port.
- Updating my package.json file with the following script didn’t help:
"scripts": { "postinstall": "rndebugger-open --expo" }
- Since Expo starts the RN packager for me, I don’t understand how to run
REACT_DEBUGGER="unset ELECTRON_RUN_AS_NODE && open -g 'rndebugger://set-debugger-loc?port=19001' ||" npm start
- I tried
xdg-open "rndebugger://set-debugger-loc?host=localhost&port=19001"xdg-mime query default http
without success (not sure how to assign react-native-debugger to this specific mime.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Expo Documentation
Create amazing apps that run everywhere. Build one JavaScript/TypeScript project that runs natively on all your users' devices.
Read more >Easier React Native Development With Expo - Code
Expo provides a layer on top of the React Native APIs to make them easier to use and manage. It also provides tools...
Read more >Building React Native Apps — Expo or not?
When and Why Should I Use Expo? · 1. Fastest way to build React Native Apps · 2. You don't need to know...
Read more >How Expo Is Fooling Everyone - Better Programming
To get an APK/IPA of your application, you must either use the publish button in Expo Dev Tools or use the CLI and...
Read more >Expo - Reviews, Pros & Cons | Companies using Expo
See what developers are saying about how they use Expo. Check out popular companies that use Expo and some tools that integrate with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
for anyone that would like a bash function to open the debugger on the port of your choosing
I managed to connect to react-native-debugger, yay!
Basically:
npm run postinstall
in the terminalSeeing a lot of errors in the console though, stuff like
Also, I cannot open the <App> component (which is kind of what I care about):
Any idea regarding these last issues ?