[change] React 16 support

Fix #364
This commit is contained in:
Nicolas Gallagher
2017-09-18 20:43:40 -07:00
parent df16c24d68
commit d6df440987
8 changed files with 177 additions and 165 deletions

View File

@@ -1,9 +1,11 @@
// based on https://github.com/facebook/react/pull/4303/files
import EventPluginHub from 'react-dom/lib/EventPluginHub';
import normalizeNativeEvent from '../normalizeNativeEvent';
import ResponderEventPlugin from 'react-dom/lib/ResponderEventPlugin';
import ResponderTouchHistoryStore from 'react-dom/lib/ResponderTouchHistoryStore';
import ReactDOM from 'react-dom';
import ReactDOMUnstableNativeDependencies from 'react-dom/unstable-native-dependencies';
const { EventPluginHub } = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
const { ResponderEventPlugin, ResponderTouchHistoryStore } = ReactDOMUnstableNativeDependencies;
const topMouseDown = 'topMouseDown';
const topMouseMove = 'topMouseMove';