Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 38773ee

Browse files
authored
chore(deps): update Angular to 4.3.2 and React Native to 0.47.1 (#107)
1 parent a43bace commit 38773ee

File tree

3 files changed

+39
-19
lines changed

3 files changed

+39
-19
lines changed

gulpfile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ gulp.task('!create', ['clean'], function(done) {
5454
executeInAppDir('react-native init ' + APP_NAME, done, true);
5555
});
5656
gulp.task('!postcreate', ['!create'], function() {
57+
gulp.src(PATHS.app + '/' + APP_NAME + '/node_modules/react-native/Libraries/Renderer/ReactNativeStack*')
58+
.pipe(transformReactNativeStack())
59+
.pipe(gulp.dest(PATHS.app + '/' + APP_NAME + '/node_modules/react-native/Libraries/Renderer/'));
5760
return gulp.src(PATHS.app + '/' + APP_NAME + '/android/app/src/main/AndroidManifest.xml')
5861
.pipe(transformAndroidManifest())
5962
.pipe(gulp.dest(PATHS.app + '/' + APP_NAME + '/android/app/src/main/'));
@@ -454,6 +457,21 @@ function transformAndroidManifest() {
454457
});
455458
}
456459

460+
function transformReactNativeStack() {
461+
return through2.obj(function (file, encoding, done) {
462+
var content = String(file.contents);
463+
content = content.replace('module.exports = ReactNativeStackEntry;',
464+
`ReactNativeStackEntry.ReactNativeEventEmitter = ReactNativeEventEmitter_1;
465+
ReactNativeStackEntry.ReactNativeTagHandles = ReactNativeTagHandles_1;
466+
ReactNativeStackEntry.ReactNativeAttributePayload = ReactNativeAttributePayload_1;
467+
468+
module.exports = ReactNativeStackEntry;`);
469+
file.contents = new Buffer(content);
470+
this.push(file);
471+
done();
472+
});
473+
}
474+
457475
function customReporter() {
458476
return {
459477
error: (error) => {

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"homepage": "https://github.com/angular/react-native-renderer/",
2626
"devDependencies": {
27-
"@angular/compiler-cli": "4.2.4",
27+
"@angular/compiler-cli": "4.3.2",
2828
"del": "^1.2.0",
2929
"glob": "^4.0.6",
3030
"gulp": "^3.9.0",
@@ -49,22 +49,22 @@
4949
"typescript": "2.3.4"
5050
},
5151
"dependencies": {
52-
"@angular/animations": "4.2.4",
53-
"@angular/common": "4.2.4",
54-
"@angular/compiler": "4.2.4",
55-
"@angular/core": "4.2.4",
56-
"@angular/http": "4.2.4",
57-
"@angular/platform-browser": "4.2.4",
58-
"@angular/platform-browser-dynamic": "4.2.4",
59-
"@angular/platform-server": "4.2.4",
60-
"@angular/router": "4.2.4",
61-
"@types/jasmine": "^2.5.52",
62-
"@types/node": "^8.0.1",
63-
"@types/react-native": "^0.44.10",
52+
"@angular/animations": "4.3.2",
53+
"@angular/common": "4.3.2",
54+
"@angular/compiler": "4.3.2",
55+
"@angular/core": "4.3.2",
56+
"@angular/http": "4.3.2",
57+
"@angular/platform-browser": "4.3.2",
58+
"@angular/platform-browser-dynamic": "4.3.2",
59+
"@angular/platform-server": "4.3.2",
60+
"@angular/router": "4.3.2",
61+
"@types/jasmine": "^2.5.53",
62+
"@types/node": "^8.0.19",
63+
"@types/react-native": "^0.46.11",
6464
"hammerjs": "2.0.8",
65-
"react-native": "0.45.1",
65+
"react-native": "0.47.1",
6666
"reflect-metadata": "0.1.9",
67-
"rxjs": "5.4.1",
68-
"zone.js": "0.8.12"
67+
"rxjs": "5.4.2",
68+
"zone.js": "0.8.16"
6969
}
7070
}

src/wrapper/wrapper_impl.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ var UIManager = ReactNative.NativeModules.UIManager;
99
var resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource');
1010
var dismissKeyboard = require('react-native/Libraries/Utilities/dismissKeyboard');
1111

12-
var ReactNativeEventEmitter = require('react-native/Libraries/Renderer/src/renderers/native/ReactNativeEventEmitter');
13-
var ReactNativeTagHandles = require('react-native/Libraries/Renderer/src/renderers/native/ReactNativeTagHandles');
14-
var ReactNativeAttributePayload = require('react-native/Libraries/Renderer/src/renderers/native/ReactNativeAttributePayload');
12+
var ReactNativeStackEntry = require('react-native/Libraries/Renderer/ReactNativeStack-dev');
13+
14+
var ReactNativeEventEmitter = ReactNativeStackEntry.ReactNativeEventEmitter;
15+
var ReactNativeTagHandles = ReactNativeStackEntry.ReactNativeTagHandles;
16+
var ReactNativeAttributePayload = ReactNativeStackEntry.ReactNativeAttributePayload;
1517
var ReactNativeViewAttributes = require('react-native/Libraries/Components/View/ReactNativeViewAttributes');
1618

1719
overridePlatform(ReactNative.Platform.OS);

0 commit comments

Comments
 (0)