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