diff --git a/README.md b/README.md index 3d98dac..f60abb6 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ For more ClojureScript React Native resources visit [cljsrn.org](http://cljsrn.o Contributions are welcome. ## State -- Uses React Native v0.21.0 +- Uses React Native v0.22.0 - Same codebase for iOS and Android - Figwheel used for REPL and live coding. - Works in iOS (real device and simulator). @@ -159,6 +159,17 @@ $ lein figwheel ios android ``` Then start iOS app from xcode, and Android by executing `react-native run-android` +#### Faster Figwheel hot reloading +Since version 0.22.0 React Native supports Hot Module Reload. But at least for now, this feature is useless +as Figwheel is doing that as good. + +It looks like Figwheel reloads are faster if Hot Moduler Reload is OFF. +Also, no need packager to watch for changed files - Figwheel does that. + +Two things you can do: +1. Turn off HMR from the development menu. +2. Start packager with option `--nonPersistent`. You can use `npm start` for that. + #### Starting Figwheel REPL from nREPL To start Figwheel within nREPL session: ``` diff --git a/re-natal.coffee b/re-natal.coffee index e075f84..e46b4c2 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -29,7 +29,7 @@ devHostRx = /\$DEV_HOST\$/g ipAddressRx = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/i figwheelUrlRx = /ws:\/\/[0-9a-zA-Z\.]*:/g appDelegateRx = /http:\/\/[^:]+/g -rnVersion = '0.21.0' +rnVersion = '0.22.0' rnPackagerPort = 8081 process.title = 're-natal' interfaceConf = @@ -363,7 +363,7 @@ init = (interfaceName, projName) -> version: '0.0.1' private: true scripts: - start: 'node_modules/react-native/packager/packager.sh' + start: 'node_modules/react-native/packager/packager.sh --nonPersistent' dependencies: 'react-native': rnVersion , null, 2