mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 23:48:54 +00:00
Move modality initialization to StyleSheet
This commit is contained in:
@@ -10,8 +10,12 @@
|
||||
*/
|
||||
|
||||
import flattenStyle from './flattenStyle';
|
||||
import modality from '../../modules/modality';
|
||||
import StyleRegistry from './registry';
|
||||
|
||||
// initialize focus-ring fix
|
||||
modality();
|
||||
|
||||
// allow component styles to be editable in React Dev Tools
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
const { canUseDOM } = require('fbjs/lib/ExecutionEnvironment');
|
||||
|
||||
@@ -12,12 +12,9 @@ import '../injectResponderEventPlugin';
|
||||
|
||||
import AccessibilityUtil from '../AccessibilityUtil';
|
||||
import createDOMProps from '../createDOMProps';
|
||||
import modality from '../modality';
|
||||
import normalizeNativeEvent from '../normalizeNativeEvent';
|
||||
import React from 'react';
|
||||
|
||||
modality();
|
||||
|
||||
/**
|
||||
* Ensure event handlers receive an event of the expected shape. The 'button'
|
||||
* role – for accessibility reasons and functional equivalence to the native
|
||||
|
||||
Reference in New Issue
Block a user