mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-13 06:15:40 +00:00
44ecbc072e
Update to React@15.4. The 'EventConstants' module no longer exports a key-mirror, which was preventing the 'ResponderEventPlugin' from working as it did with React@15.3. Close #255
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
import findNodeHandle from './modules/findNodeHandle';
|
|
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection';
|
|
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
|
|
|
|
ReactDefaultInjection.inject();
|
|
|
|
// APIs
|
|
import I18nManager from './apis/I18nManager';
|
|
import Platform from './apis/Platform';
|
|
import StyleSheet from './apis/StyleSheet';
|
|
|
|
// components
|
|
import Image from './components/Image';
|
|
import Text from './components/Text';
|
|
import TextInput from './components/TextInput';
|
|
import Touchable from './components/Touchable/Touchable';
|
|
import TouchableHighlight from './components/Touchable/TouchableHighlight';
|
|
import TouchableOpacity from './components/Touchable/TouchableOpacity';
|
|
import TouchableWithoutFeedback from './components/Touchable/TouchableWithoutFeedback';
|
|
import View from './components/View';
|
|
|
|
// modules
|
|
import createDOMElement from './modules/createDOMElement';
|
|
|
|
const ReactNativeCore = {
|
|
createDOMElement,
|
|
findNodeHandle,
|
|
render,
|
|
unmountComponentAtNode,
|
|
// APIs
|
|
I18nManager,
|
|
Platform,
|
|
StyleSheet,
|
|
// components
|
|
Image,
|
|
Text,
|
|
TextInput,
|
|
Touchable,
|
|
TouchableHighlight,
|
|
TouchableOpacity,
|
|
TouchableWithoutFeedback,
|
|
View
|
|
};
|
|
|
|
module.exports = ReactNativeCore;
|