Skip to content

Crash on react native 74 #16

@Ahmad0811

Description

@Ahmad0811

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-image-transformer@1.5.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-image-transformer/src/index.js b/node_modules/react-native-image-transformer/src/index.js
index fb5ee43..9455c57 100644
--- a/node_modules/react-native-image-transformer/src/index.js
+++ b/node_modules/react-native-image-transformer/src/index.js
@@ -14,8 +14,8 @@ export default class ImageTransformer extends React.Component {
         }).isRequired,
         index: PropTypes.number,
         style: ViewPropTypes
-            ? ViewPropTypes.style
-            : View.propTypes.style,
+            ? ViewPropTypes?.style
+            : View?.propTypes?.style,
         onLoad: PropTypes.func,
         onLoadStart: PropTypes.func,
         enableTransform: PropTypes.bool,

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions