From 1d42802582c8776cfc504700727871fcb23b5be1 Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Wed, 24 Jan 2018 19:37:48 +0100 Subject: [PATCH 1/3] use react-native 0.52.0 --- re-natal.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re-natal.coffee b/re-natal.coffee index 4667a45..891eb59 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -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 = From abde3da55e913750f27780bf97ceba684796841d Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Sun, 4 Feb 2018 17:30:45 +0100 Subject: [PATCH 2/3] update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b103c36..8978c8e 100644 --- a/README.md +++ b/README.md @@ -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) From 0e88bb55d708ca22d64125879519bbc3c9ef71b4 Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Sun, 4 Feb 2018 19:15:26 +0100 Subject: [PATCH 3/3] fix enable-source-maps --- re-natal.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/re-natal.coffee b/re-natal.coffee index 2262ab1..135ffb9 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -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"] @@ -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) ->