Commit 2cc049d
authored
fix: unexpected expection when style array contains undefined
Currently, when the style prop is an array and contains undefined, it may throw "right operand of 'in' is not an object"
for example:
https://github.com/react-navigation/react-navigation/blob/main/packages/elements/src/SafeAreaProviderCompat.tsx#L36
https://github.com/expo/expo/blob/main/packages/expo-router/src/views/Unmatched.tsx#L1101 parent 90a99b0 commit 2cc049d
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
0 commit comments