Skip to content

Commit

Permalink
Merge pull request #164 from drapanjanas/rn-52
Browse files Browse the repository at this point in the history
Use React Native 0.52.0
  • Loading branch information
drapanjanas authored Feb 4, 2018
2 parents 1aab585 + 0e88bb5 commit a08d332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For more ClojureScript React Native resources visit [cljsrn.org](http://cljsrn.o
Contributions are very welcome.

## Status
- Uses [React Native] v0.50.3
- Uses [React Native] v0.52.0
- Reusable codebase between iOS and Android
- Figwheel used for REPL and live coding
- Works in iOS (real device and simulator)
Expand Down
7 changes: 4 additions & 3 deletions re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ ipAddressRx = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/i
debugHostRx = /host]\s+\?:\s+@".*";/g
namespaceRx = /\(ns\s+([A-Za-z0-9.-]+)/g
jsRequireRx = /js\/require "(.+)"/g
rnVersion = '0.50.3'
rnWinVersion = '0.50.0-rc.2'
rnVersion = '0.52.0'
rnWinVersion = '0.52.0-rc.0'
rnPackagerPort = 8081
process.title = 're-natal'
buildProfiles =
Expand Down Expand Up @@ -380,6 +380,7 @@ updateGitIgnore = (platforms) ->

findPackagerFileToPatch = () ->
files = [
"node_modules/metro/src/Server/index.js",
"node_modules/metro-bundler/src/Server/index.js",
"node_modules/metro-bundler/build/Server/index.js",
"node_modules/react-native/packager/src/Server/index.js"]
Expand All @@ -394,7 +395,7 @@ patchReactNativePackager = () ->
fileToPatch = findPackagerFileToPatch()
log "Patching file #{fileToPatch} to serve *.map files."
edit fileToPatch,
[[/match.*\.map\$\/\)/m, "match(/index\\..*\\.map$/)"]]
[[/match\(\/\\.map\$\/\)/m, "match(/index\\..*\\.map$/)"]]
log "If the React Native packager is running, please restart it."

shimCljsNamespace = (ns) ->
Expand Down

0 comments on commit a08d332

Please sign in to comment.