Updating to RN 0.50.3.

This commit is contained in:
Kenneth Geisshirt 2017-11-15 11:59:13 +01:00 committed by blagoev
parent c4e1784496
commit cc515a6a60
6 changed files with 12 additions and 8 deletions

View File

@ -109,10 +109,10 @@ open_chrome() {
start_packager() {
watchman watch-del-all || true
./node_modules/react-native/packager/packager.sh | tee "$PACKAGER_OUT" &
./node_modules/react-native/scripts/packager.sh | tee "$PACKAGER_OUT" &
while :; do
if grep -Fxq "React packager ready." "$PACKAGER_OUT"; then
if grep -Fxq "Metro Bundler ready." "$PACKAGER_OUT"; then
break
else
echo "Waiting for packager."

View File

@ -1,6 +1,7 @@
'use strict';
const require_method = require;
function node_require(module) {
return require(module);
return require_method(module);
}
const Realm = node_require('realm');

View File

@ -27,7 +27,8 @@ if( typeof Realm.Sync !== 'undefined' && Realm.Sync !== null ) {
}
const isNodeProcess = typeof process === 'object' && process + '' === '[object process]';
function node_require(module) { return require(module); }
const require_method = require;
function node_require(module) { return require_method(module); }
if (isNodeProcess && process.platform === 'win32') {
global.enableSyncTests = false;

View File

@ -27,8 +27,9 @@ const TestCase = require('./asserts');
const isNodeProccess = (typeof process === 'object' && process + '' === '[object process]');
const require_method = require;
function node_require(module) {
return require(module);
return require_method(module);
}
let tmp;

View File

@ -829,7 +829,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
};
/* End PBXShellScriptBuildPhase section */

View File

@ -6,13 +6,14 @@
"start": "react-native start"
},
"dependencies": {
"react": "~15.4.0-rc.4",
"react-native": "0.40.0",
"react": "~16.0.0-beta.5",
"react-native": "0.50.3",
"react-native-fs": "^1.1.0",
"realm": "file:../..",
"realm-tests": "file:../js",
"xmlbuilder": "^4.2.1"
},
"resolutions": { "moment": "2.19.1" },
"devDependencies": {
"babel-preset-react-native": "1.9.1",
"invariant": "^2.2.2"