diff --git a/src/index.js b/src/index.js index 86c86f55..36313f85 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,8 @@ import './apis/PanResponder/injectResponderEventPlugin' +import findNodeHandle from './modules/findNodeHandle' +import ReactDOM from 'react-dom' + // apis import Animated from './apis/Animated' import AppRegistry from './apis/AppRegistry' @@ -40,6 +43,10 @@ import EdgeInsetsPropType from './apis/StyleSheet/EdgeInsetsPropType' import PointPropType from './apis/StyleSheet/PointPropType' const ReactNative = { + findNodeHandle, + render: ReactDOM.render, + unmountComponentAtNode: ReactDOM.unmountComponentAtNode, + // apis Animated, AppRegistry, diff --git a/src/modules/findNodeHandle/index.js b/src/modules/findNodeHandle/index.js new file mode 100644 index 00000000..138fcd0f --- /dev/null +++ b/src/modules/findNodeHandle/index.js @@ -0,0 +1,3 @@ +import ReactDOM from 'react-dom' +const findNodeHandle = ReactDOM.findDOMNode +export default findNodeHandle