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" } }