bump RN version to 0.22.0

This commit is contained in:
Artur Girenko 2016-03-21 22:50:54 +01:00
parent 7fbfc7c293
commit d7567b4de4
2 changed files with 14 additions and 3 deletions

View File

@ -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:
```

View File

@ -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