Skip to content

Commit

Permalink
Use internals from react-dom. Don't fire me.
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoo committed Jul 10, 2017
1 parent e7e91f5 commit 8a0da1f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/modules/injectResponderEventPlugin.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 8a0da1f

Please sign in to comment.