-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 cmd+R cmd+D Shake Gesture doesn't work not refreshing #2133
Comments
Try command + shift + T. Your keyboard might be disabled. JG :: sent from my mobile device ::
|
@jaygarcia I tried . don't work. All the same. My keyboard could input the word . It connected to the simulator. How can I make sure the watchman was working on the simulator? |
Your bundle server might not be running. That server is what should connect to watchman. Does Xcode launch a server in your terminal when you run your app? Do you see any errors in Xcode or the simulator? |
@ericvicenti When I run my app, there is no error, in my Xcode or on the simulator. My app was work fine . Just when I modify my js file , hit cmd+R ,the simulator doesn't work,not refreshing. I couldn't see any error. Just not response. |
Does the server run? (A terminal window should appear when you press run in Xcode) |
@ericvicenti yes, ofcourse. The server was running. When I modified the js file , request the index.ios.bundle, At the terminal console i could see the change. [09:39:13] find dependencies Just not working refreshing in my simulator. |
@ericvicenti Also I make sure the watchman was working . In my terminal console , i run the command " ps -ef|grep watchman" , I could see the process code . 501 35782 1 0 5:16下午 ?? 0:11.62 /usr/local/bin/watchman --foreground --logfile=/usr/local/Cellar/watchman/3.3.0/var/run/watchman/cici.log --log-level=1 --sockname=/usr/local/Cellar/watchman/3.3.0/var/run/watchman/cici --statefile=/usr/local/Cellar/watchman/3.3.0/var/run/watchman/cici.state |
@chunecai when the simulator is active, can you go to the top menu and choose Hardware -> Shake Gesture? This should pop up a menu with a button that says Reload. If this works for you, then I believe there is a problem with your computer's keyboard configuration. |
@ide It doesn't work . When I choose Hardware -> Shake Gesture , It was not pop anything . |
@ide I saw my computer's keyboard configuration , It was right , It was QWERTY keyboard . |
This is very strange... are you running the app in RELEASE mode maybe? The menu is enabled only in DEBUG mode. |
@ide Think you so much . It was this problem . One day I packaged this app to my iphone . Modified this configuration . fixed: @jaygarcia @ericvicenti |
awesome. #winning |
Happy coding... |
Great!! saved me too :P Thanks to @ide |
@chunecai thank you. You saved me a load of time! |
Can this fix please be added to https://facebook.github.io/react-native/docs/troubleshooting.html ? Those list of fixes are very good, and I believe this should be noted as well. Thanks, and Happy New Year everyone. |
This might be a bit stack overflow-ish but I ran into the same problem. My keyboard was disabled as @jaygarcia mentioned, but for some reason my hotkey is mapped to command + shift + K, not command + shift + T From the simulator check "Hardware > Keyboard" and make sure "Connect Hardware Keyboard" is enabled. |
@MTen Think you so much.Hava a nice day |
I just update to RN0.43,and found that command + R work while command + D not work,anyone can help? check the pod i use, found that I haven't imort 'DevSupport', so I can't use command + D to debug. |
I am also finding that CMD+D does not work while CMD+R does. just upgraded RN from 0.40 to 0.44 |
Adding
cc @kpogz |
It sadly doesn't work for me on 0.44 @julienfouilhe, I am pretty sure my scheme is on debug, I ran Any clues? Version 10.0 (SimulatorApp-745.10 CoreSimulator-375.21) |
my version is 0.45, and config pod like below can fix this issue pod 'React', :path => './ReactNative/node_modules/react-native', :subspecs => [ post_install do |installer| installer.pods_project.targets.each do |target| |
@julienfouilhe you saved the day -- have been looking for this for weeks. 🙏 |
@renatomcamilio Credits actually go to @njafei, got the answer from him two messages above mine ;) |
Without this the dev menu will not appear, after the shake gesture. I don't know if we need that, but here there are also some flags that are adjusted in the solution proposed here: facebook/react-native#2133 Note that those flags are not required for the dev menu to work, so I've skipped them.
include DevSupport Without this the dev menu will not appear, after the shake gesture. I don't know if we need that, but here there are also some flags that are adjusted in the solution proposed here: facebook/react-native#2133 Note that those flags are not required for the dev menu to work, so I've skipped them.
include DevSupport Without this the dev menu will not appear, after the shake gesture. I don't know if we need that, but here there are also some flags that are adjusted in the solution proposed here: facebook/react-native#2133 Note that those flags are not required for the dev menu to work, so I've skipped them.
include DevSupport Without this the dev menu will not appear, after the shake gesture. I don't know if we need that, but here there are also some flags that are adjusted in the solution proposed here: facebook/react-native#2133 Note that those flags are not required for the dev menu to work, so I've skipped them.
in the emulator "Hardware" -> "Erase All Contents and Settings" , and rebuild the version work for me |
🙃in the emulator "Hardware" -> "Restart" , it work for me |
when I edit the js file and hit Cmd-R in the simulator, nothing happens.
It was work fine by yesterday. I don't kown what happened. I try to restart , full install every software.
It doesn't work . My simulator Hardware > Shake Gesture doesn't work too.
I try http://facebook.github.io/react-native/docs/troubleshooting.html#content and #306 methods , not work.
I think does the watchman is not connection in my simulator. How can I fix it ?
xcode - Version 6.4 (6E35b)
simulator - Version 8.4
watchman - 3.3.0
node - 0.12.7
The text was updated successfully, but these errors were encountered: