Skip to content

npx react-native start warn Package react-native-fingerprint-scanner #255

@BlupayDevs

Description

@BlupayDevs

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-fingerprint-scanner@6.0.0 for the project I'm working on.

contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-fingerprint-scanner/react-native.config.js b/node_modules/react-native-fingerprint-scanner/react-native.config.js
index 5f794ab..28c1aea 100644
--- a/node_modules/react-native-fingerprint-scanner/react-native.config.js
+++ b/node_modules/react-native-fingerprint-scanner/react-native.config.js
@@ -3,9 +3,7 @@ module.exports = {
     platforms: {
       ios: {},
       android: {},
-    },
-    assets: [],
-    // hooks are considered anti-pattern, please avoid them
-    hooks: {},
+    }
   },
 };
+

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