haxe-react / react-native

React Native externs for Haxe
61 stars 9 forks source link

Hot reloading compability? #7

Closed Misiur closed 7 years ago

Misiur commented 7 years ago

Hello. React-native hot reloading is a cool feature. However, because we are working on a single haxe compiled js file it doesn't work. Any ideas how to make it work?

kevinresol commented 7 years ago

It does work. Check out the setting here: https://github.com/haxe-react/haxe-react-native-sample Basically it works by having an extra js file to load the haxe generated js.

Though it could become very slow if your app is big due to the single js file. You can speed up by breaking up the generated js.