From 92d6632d7a4c268145a79e220e41733052c46c3b Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 16 Jun 2016 14:33:02 -0700 Subject: [PATCH] Update React to 15.2.0-rc.1 Summary: Notable changes (excluding DOM-only things): - Improved warning messages for propTypes and key warnings - Production error codes - Improved performance in DEV mode - More accurate data in ReactPerf instrumentation - Experimental JSON test renderer - Minor bug fixes Full changelog: https://github.com/facebook/react/compare/fef495942a1cf7d507c816192fde205b6003df05...c66f40f74958d003601f2c0ee22d135da7811e70. Reviewed By: AaaChiuuu Differential Revision: D3442002 fbshipit-source-id: 940fc65ba5d0b742417bbe2fcbd36eb9dc7443e1 --- Libraries/Inspector/Inspector.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/Inspector/Inspector.js b/Libraries/Inspector/Inspector.js index 04acc996c..0967f9dc3 100644 --- a/Libraries/Inspector/Inspector.js +++ b/Libraries/Inspector/Inspector.js @@ -129,7 +129,7 @@ class Inspector extends React.Component { // therefore we use the internal _instance property directly. var publicInstance = instance['_instance'] || {}; var source = instance['_currentElement'] && instance['_currentElement']['_source']; - UIManager.measure(instance.getNativeNode(), (x, y, width, height, left, top) => { + UIManager.measure(instance.getHostNode(), (x, y, width, height, left, top) => { this.setState({ inspected: { frame: {left, top, width, height}, diff --git a/package.json b/package.json index 22359e4c7..bab8f9990 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "react-native": "local-cli/wrong-react-native.js" }, "peerDependencies": { - "react": "~15.1.0" + "react": "~15.2.0-rc.1" }, "dependencies": { "absolute-path": "^0.0.0", @@ -201,7 +201,7 @@ "flow-bin": "^0.27.0", "jest": "12.1.1", "portfinder": "0.4.0", - "react": "~15.1.0", + "react": "~15.2.0-rc.1", "shelljs": "0.6.0" } }