create-react-native-app-typescript
create-react-native-app-typescript copied to clipboard
HMR doesn't work
trafficstars
create new empty project, enable hot reloading, change text in App.tsx -> nothing happens
Expected result: text on screen should change
create-react-native-app my-app --scripts-version=react-native-scripts-ts:cd my-app:npm start:- press I ( open IOS emulator )
This fixed it for me:
tsconfig.json
{
"compilerOptions": {
- "target": "es5",
+ "target": "es2015",
- "jsx": "react-native",
+ "jsx": "react",
...
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?
It's just the Wireless, USB works without any problem.