Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions patches/react-native-css-interop+0.1.22.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/node_modules/react-native-css-interop/dist/css-to-rn/parseDeclaration.js b/node_modules/react-native-css-interop/dist/css-to-rn/parseDeclaration.js
index 1234567..abcdefg 100644
--- a/node_modules/react-native-css-interop/dist/css-to-rn/parseDeclaration.js
+++ b/node_modules/react-native-css-interop/dist/css-to-rn/parseDeclaration.js
@@ -1756,6 +1756,10 @@ function parseAspectRatio(aspectRatio) {
if (aspectRatio.auto) {
return "auto";
}
+ // Handle case where aspectRatio.ratio is undefined (e.g., from certain CSS libraries like @novu/js)
+ if (!aspectRatio.ratio) {
+ return undefined;
+ }
else {
if (aspectRatio.ratio[0] === aspectRatio.ratio[1]) {
return 1;
Loading