From 37781171aaa1e1b5d6f8ea0df8e6a8c1234581b2 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 23 Jun 2016 10:16:45 -0700 Subject: [PATCH] [add] more ReactNative exports --- src/index.js | 7 +++++++ src/modules/findNodeHandle/index.js | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 src/modules/findNodeHandle/index.js 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