diff --git a/src/runtime-styles.ts b/src/runtime-styles.ts index 0af0d30..18bfe22 100644 --- a/src/runtime-styles.ts +++ b/src/runtime-styles.ts @@ -49,7 +49,8 @@ export function getRuntimeStyles
({ } for (let styleRecord of styleArray) { - if ("atRules" in styleRecord) { + // react-native-web <=17 still uses style IDs, so styleRecord may be a number + if (typeof styleRecord === "object" && "atRules" in styleRecord) { let isForChildren = false; const { atRules, ...style } = styleRecord;