Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The reload hotkey cmd+r doesn't work

Tags:

react-native

I have setup a react-native app and it can be launched by running the "react-native run-ios" from a terminal. I can see that there is another terminal popup to listening on 8081 port. However, when I press cmd+r on the simulator it doesn't do the refresh. I can see that the watchman is running. If there is an error on my javascript, I am able to refresh the simulator by clicking the Refresh button on the bottom of the screen. I don't understand why the hot-key doesn't work. Do I need to install anything else?

like image 837
Joey Yi Zhao Avatar asked Apr 15 '16 09:04

Joey Yi Zhao


2 Answers

You probably need to check that the simulator is connected to your hardware. To do this, go to Hardware -> Keyboard -> Connect Hardware Keyboard in your simulator menu.

enter image description here

like image 157
Nader Dabit Avatar answered Oct 02 '22 23:10

Nader Dabit


To anyone who's tried this, it hasn't worked, and you're using Cocoapods:

  1. In [Xcode_project].xcworkspace, click Pods on the left within the project directory view.
  2. Click Pods under project
  3. Under Configurations select Use Debug for command-line builds

Clean project; rebuild; run.

Xcode screenshot

like image 23
wkoutre Avatar answered Oct 02 '22 22:10

wkoutre