My First React Native Pitfall
Introduction Hard to believe it's already 2017 the next time I sit down to write something. The Problem I started looking into React Native, and the HelloWorld project just wouldn't run. The error was: After Googling around, many posts suggested this was caused by a VPN tool modifying the hosts file. I quit my VPN tool, but the problem persisted. Then I switched to a different Wi-Fi network on a whim, and it worked — which confirmed the issue was definitely with the hosts file. When I checked the local hosts file at , it was nowhere to be found. I tried creating a new hosts file. I created a file named on the Desktop with the following content: Then copied it to , which prompted for a password. Restarted, tested normal internet access and VPN — no issues whatsoever. Ran from Xcode: OK. also worked fine. I glanced at my locked phone screen and noticed that the Handoff issue that had been bugging me for a long time was also magically resolved.