1

The provided solution here didn't work for me completely.

I am trying to use react-native with Typescript, so I set up a project with react-native init MyApp --template typescript. When I run react-native run-android I basically have a couple of saves to the App.tsx file and the changes do get applied fine. But after a while it doesn't apply the changes anymore and I have to restart the metro bundler.

Does anybody know how to fix that?

3
  • Are you using hot reloading or live reloading? Hot reloading is known to be more buggy than the latter. Commented Mar 3, 2019 at 14:09
  • I tried both, neither did work correctly. Commented Mar 3, 2019 at 14:50
  • I just worked on a React Native project, and when the reload didn't trigger on save, I saved my file several times more in a row. Ugly hack, but that worked. Else, there are many bug reports on React Native's reload, including this issue where @cihadturhan proposed a websocket-level fix for an issue that really looks like yours Commented Mar 3, 2019 at 16:13

1 Answer 1

0

Sorry for the late answer, hope you have figured it out in the meantime.

In the old versions of the TypeScript template you had to run a post-installation script manually in order to complete the project setup.

This isn't necessary anymore as it is being done automatically in the latest React Native version.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.