mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 23:27:05 +08:00
React.findNodeHandle -> ReactNative.findNodeHandle
Summary:Since the React 0.14 split of modules, the findNodeHandle feature is part of the
renderer and not the generic React API.
This just greps for React.findNodeHandle and replace them with ReactNative.findNodeHandle. I fixed up the imports manually.
I also found two callers each of ReactNative.createClass and React.render with the exception of downstream and examples will fix them separately.
I'll need to find more things like `var { PropTypes } = ReactNative;` separately. I think this is a good start though.
Reviewed By: vjeux
Differential Revision: D3149356
fb-gh-sync-id: 50ed60bc67270b16f561d4c641f2f19e85724d3b
fbshipit-source-id: 50ed60bc67270b16f561d4c641f2f19e85724d3b
This commit is contained in:
committed by
Facebook Github Bot 5
parent
6038040f8e
commit
613ca14612
@@ -18,6 +18,7 @@ var PointPropType = require('PointPropType');
|
||||
var RCTScrollView = require('NativeModules').UIManager.RCTScrollView;
|
||||
var RCTScrollViewManager = require('NativeModules').ScrollViewManager;
|
||||
var React = require('React');
|
||||
var ReactNative = require('ReactNative');
|
||||
var ScrollResponder = require('ScrollResponder');
|
||||
var StyleSheet = require('StyleSheet');
|
||||
var StyleSheetPropType = require('StyleSheetPropType');
|
||||
@@ -342,7 +343,7 @@ var ScrollView = React.createClass({
|
||||
|
||||
endRefreshing: function() {
|
||||
RCTScrollViewManager.endRefreshing(
|
||||
React.findNodeHandle(this)
|
||||
ReactNative.findNodeHandle(this)
|
||||
);
|
||||
},
|
||||
|
||||
@@ -357,11 +358,11 @@ var ScrollView = React.createClass({
|
||||
},
|
||||
|
||||
getScrollableNode: function(): any {
|
||||
return React.findNodeHandle(this.refs[SCROLLVIEW]);
|
||||
return ReactNative.findNodeHandle(this.refs[SCROLLVIEW]);
|
||||
},
|
||||
|
||||
getInnerViewNode: function(): any {
|
||||
return React.findNodeHandle(this.refs[INNERVIEW]);
|
||||
return ReactNative.findNodeHandle(this.refs[INNERVIEW]);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user