Fixes #4334: Update to react-native 0.55.4

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
pacamara 2018-05-25 16:16:51 +01:00 committed by Pedro Pombeiro
parent a27134fb44
commit a2762eb19e
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
4 changed files with 1092 additions and 1239 deletions

View File

@ -211,7 +211,7 @@ dependencies {
implementation "com.android.support:appcompat-v7:26.1.0"
// Force using exact RN version instead of relying on gradle dependency resolution
// https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution
compile ("com.facebook.react:react-native:0.53.3") { force = true } // From node_modules
compile ("com.facebook.react:react-native:0.55.4") { force = true } // From node_modules
implementation project(':react-native-i18n')
implementation project(':react-native-camera')
implementation project(':react-native-status')

2306
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@
"re-natal": "0.8.1",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-native": "0.53.3",
"react-native": "0.55.4",
"react-native-background-timer": "2.0.0",
"react-native-camera": "0.10.0",
"react-native-config": "0.9.0",

View File

@ -38,11 +38,14 @@
:headers {"Cache-Control" "no-cache"}
:timeout (or timeout-ms http-request-default-timeout-ms)}))
(.then (fn [response]
(->
(.text response)
(.then (fn [response-body]
(let [ok? (.-ok response)
ok?' (if valid-response?
(and ok? (valid-response? response))
ok?)]
[(.-_bodyText response) ok?'])))
[response-body ok?']))))))
(.then (fn [[response ok?]]
(cond
(and on-success ok?)