mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-01 18:15:13 +00:00
[add] more ReactNative exports
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import './apis/PanResponder/injectResponderEventPlugin'
|
import './apis/PanResponder/injectResponderEventPlugin'
|
||||||
|
|
||||||
|
import findNodeHandle from './modules/findNodeHandle'
|
||||||
|
import ReactDOM from 'react-dom'
|
||||||
|
|
||||||
// apis
|
// apis
|
||||||
import Animated from './apis/Animated'
|
import Animated from './apis/Animated'
|
||||||
import AppRegistry from './apis/AppRegistry'
|
import AppRegistry from './apis/AppRegistry'
|
||||||
@@ -40,6 +43,10 @@ import EdgeInsetsPropType from './apis/StyleSheet/EdgeInsetsPropType'
|
|||||||
import PointPropType from './apis/StyleSheet/PointPropType'
|
import PointPropType from './apis/StyleSheet/PointPropType'
|
||||||
|
|
||||||
const ReactNative = {
|
const ReactNative = {
|
||||||
|
findNodeHandle,
|
||||||
|
render: ReactDOM.render,
|
||||||
|
unmountComponentAtNode: ReactDOM.unmountComponentAtNode,
|
||||||
|
|
||||||
// apis
|
// apis
|
||||||
Animated,
|
Animated,
|
||||||
AppRegistry,
|
AppRegistry,
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
import ReactDOM from 'react-dom'
|
||||||
|
const findNodeHandle = ReactDOM.findDOMNode
|
||||||
|
export default findNodeHandle
|
||||||
Reference in New Issue
Block a user