Files
react-native-web/scripts/inline-style-prefixer/create.js
Nicolas Gallagher b27c9820db [change] StyleSheet rewrite
* Improves React Native compatibility by making StyleSheet.create the identify function.
* Improves React 18 support by inserting styles on eval.
* Supports use with multiple windows (i.e., iframes) and shadow roots.
* Supports nested LTR/RTL layouts.
* Supports 3rd party compilers and extraction to static CSS.
* Fixes static and dynamic short/longform deduplication.
* Reduces browser support: Safari 10.1+, Chromium Edge, no IE, no legacy Android browsers.
* Removes automatic vendor-prefixing of inline styles (for better perf).
* Removes focus-visible polyfill as modern browsers no longer show focus rings for mouse interactions.

Close #2208
Fix #2138
Fix #2196
Fix #2007
Fix #1517
2022-03-02 10:50:04 -08:00

19 lines
371 B
JavaScript

'use strict';
const generator = require('inline-style-prefixer/lib/generator').default;
const path = require('path');
const browserList = {
and_chr: 49,
chrome: 49,
edge: 79,
firefox: 52,
ios_saf: 11,
opera: 50,
safari: 11
};
generator(browserList, {
path: path.join(__dirname, '../../packages/react-native-web/src/modules/prefixStyles/static.js')
});