Skip to content

fix: unexpected expection when style array contains undefined#115

Merged
marklawlor merged 3 commits into
nativewind:mainfrom
yeliex:patch-1
Aug 25, 2025
Merged

fix: unexpected expection when style array contains undefined#115
marklawlor merged 3 commits into
nativewind:mainfrom
yeliex:patch-1

Conversation

@yeliex

@yeliex yeliex commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

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#L110

@marklawlor marklawlor enabled auto-merge (squash) August 25, 2025 10:11
@marklawlor marklawlor merged commit d4209f0 into nativewind:main Aug 25, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants