mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
[fix] Avoid using Object.values
Not everyone is polyfilling older environments Fix #1334
This commit is contained in:
@@ -66,7 +66,8 @@ export default function createStyleResolver() {
|
||||
if (!inserted[dir][id]) {
|
||||
const style = createCompileableStyle(i18nStyle(flattenStyle(id)));
|
||||
const results = atomic(style);
|
||||
Object.values(results).forEach(({ identifier, property, rules, value }) => {
|
||||
Object.keys(results).forEach(key => {
|
||||
const { identifier, property, rules, value } = results[key];
|
||||
addToLookup(identifier, property, value);
|
||||
rules.forEach(rule => {
|
||||
const group = STYLE_GROUPS.custom[property] || STYLE_GROUPS.atomic;
|
||||
|
||||
Reference in New Issue
Block a user