diff --git a/patches/react-native-css-interop+0.1.22.patch b/patches/react-native-css-interop+0.1.22.patch new file mode 100644 index 0000000..ec9ded3 --- /dev/null +++ b/patches/react-native-css-interop+0.1.22.patch @@ -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;