File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/react-native-web/src/exports/createElement Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
import AccessibilityUtil from '../../modules/AccessibilityUtil' ;
11
+ import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment' ;
11
12
import createDOMProps from '../../modules/createDOMProps' ;
12
13
import { injectEventPluginsByName } from 'react-dom/unstable-native-dependencies' ;
13
14
import normalizeNativeEvent from '../../modules/normalizeNativeEvent' ;
14
15
import React from 'react' ;
15
16
import ResponderEventPlugin from '../../modules/ResponderEventPlugin' ;
16
17
17
- injectEventPluginsByName ( {
18
- ResponderEventPlugin
19
- } ) ;
18
+ if ( canUseDOM ) {
19
+ injectEventPluginsByName ( {
20
+ ResponderEventPlugin
21
+ } ) ;
22
+ }
20
23
21
24
const isModifiedEvent = event =>
22
25
! ! ( event . metaKey || event . altKey || event . ctrlKey || event . shiftKey ) ;
You can’t perform that action at this time.
0 commit comments