mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-15 10:17:54 +08:00
fix: runtime-styles parsing for RWN <=0.17
This commit is contained in:
@@ -49,7 +49,8 @@ export function getRuntimeStyles<P>({
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user