[add] more ReactNative exports

This commit is contained in:
Nicolas Gallagher
2016-06-23 10:16:45 -07:00
parent 22f45e350b
commit 37781171aa
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -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,
+3
View File
@@ -0,0 +1,3 @@
import ReactDOM from 'react-dom'
const findNodeHandle = ReactDOM.findDOMNode
export default findNodeHandle