mirror of
https://github.com/status-im/re-natal.git
synced 2025-02-05 17:23:23 +00:00
bump RN version to 0.22.0
This commit is contained in:
parent
7fbfc7c293
commit
d7567b4de4
13
README.md
13
README.md
@ -23,7 +23,7 @@ For more ClojureScript React Native resources visit [cljsrn.org](http://cljsrn.o
|
|||||||
Contributions are welcome.
|
Contributions are welcome.
|
||||||
|
|
||||||
## State
|
## State
|
||||||
- Uses React Native v0.21.0
|
- Uses React Native v0.22.0
|
||||||
- Same codebase for iOS and Android
|
- Same codebase for iOS and Android
|
||||||
- Figwheel used for REPL and live coding.
|
- Figwheel used for REPL and live coding.
|
||||||
- Works in iOS (real device and simulator).
|
- 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`
|
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
|
#### Starting Figwheel REPL from nREPL
|
||||||
To start Figwheel within nREPL session:
|
To start Figwheel within nREPL session:
|
||||||
```
|
```
|
||||||
|
@ -29,7 +29,7 @@ devHostRx = /\$DEV_HOST\$/g
|
|||||||
ipAddressRx = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/i
|
ipAddressRx = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/i
|
||||||
figwheelUrlRx = /ws:\/\/[0-9a-zA-Z\.]*:/g
|
figwheelUrlRx = /ws:\/\/[0-9a-zA-Z\.]*:/g
|
||||||
appDelegateRx = /http:\/\/[^:]+/g
|
appDelegateRx = /http:\/\/[^:]+/g
|
||||||
rnVersion = '0.21.0'
|
rnVersion = '0.22.0'
|
||||||
rnPackagerPort = 8081
|
rnPackagerPort = 8081
|
||||||
process.title = 're-natal'
|
process.title = 're-natal'
|
||||||
interfaceConf =
|
interfaceConf =
|
||||||
@ -363,7 +363,7 @@ init = (interfaceName, projName) ->
|
|||||||
version: '0.0.1'
|
version: '0.0.1'
|
||||||
private: true
|
private: true
|
||||||
scripts:
|
scripts:
|
||||||
start: 'node_modules/react-native/packager/packager.sh'
|
start: 'node_modules/react-native/packager/packager.sh --nonPersistent'
|
||||||
dependencies:
|
dependencies:
|
||||||
'react-native': rnVersion
|
'react-native': rnVersion
|
||||||
, null, 2
|
, null, 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user