mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 23:06:24 +00:00
[add] more ReactNative exports
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import ReactDOM from 'react-dom'
|
||||
const findNodeHandle = ReactDOM.findDOMNode
|
||||
export default findNodeHandle
|
||||
Reference in New Issue
Block a user