mathieudutour / create-react-native-app-typescript

Create a React Native app using Typescript on any OS with no build config.
BSD 3-Clause "New" or "Revised" License
252 stars 21 forks source link

HMR doesn't work #13

Open AleksandrChernyavenko opened 6 years ago

AleksandrChernyavenko commented 6 years ago

create new empty project, enable hot reloading, change text in App.tsx -> nothing happens

Expected result: text on screen should change

AleksandrChernyavenko commented 6 years ago

This fixed it for me:

tsconfig.json


 {
   "compilerOptions": {
-    "target": "es5",
+    "target": "es2015",
-    "jsx": "react-native",
+    "jsx": "react",
 ...
mathieudutour commented 6 years ago

I'm wondering what the jsx option really does 🤔

Anyhow, if it works for you, it should be harmless. Do you want to create a PR to fix it?

theapache64 commented 6 years ago

It's just the Wireless, USB works without any problem.