diff --git a/src/modules/injectResponderEventPlugin.js b/src/modules/injectResponderEventPlugin.js index 4c2cd2c8a..a22f3e2f5 100644 --- a/src/modules/injectResponderEventPlugin.js +++ b/src/modules/injectResponderEventPlugin.js @@ -1,9 +1,17 @@ // based on https://github.com/facebook/react/pull/4303/files -import EventPluginHub from 'react-dom/lib/EventPluginHub'; +import ReactDOM from 'react-dom'; +import ReactDOMUnstableNativeDependencies from 'react-dom/unstable-native-dependencies'; + import normalizeNativeEvent from './normalizeNativeEvent'; -import ResponderEventPlugin from 'react-dom/lib/ResponderEventPlugin'; -import ResponderTouchHistoryStore from 'react-dom/lib/ResponderTouchHistoryStore'; + +const { + EventPluginHub, +} = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; +const { + ResponderEventPlugin, + ResponderTouchHistoryStore, +} = ReactDOMUnstableNativeDependencies; const topMouseDown = 'topMouseDown'; const topMouseMove = 'topMouseMove';