YoussefHenna / expo-enode-link-sdk

An Expo Module integration for Enode's Link SDK
MIT License
6 stars 2 forks source link

Cannot find native module 'ExpoEnodeLinkSDK' in Expo 51.0.19 with Hermes Engine #17

Open MrHassanNasir24 opened 1 month ago

MrHassanNasir24 commented 1 month ago

I am facing an issue when trying to integrate the @youssefhenna/expo-enode-link-sdk package into my Expo project. My project setup includes the latest Expo version 51.0.19 and Hermes engine. Upon running the app, I encounter the following errors:

Android Bundled 210ms D:\Workspace\ReactNativeWorkspace\enode-implementation\node_modules\expo\AppEntry.js (1 module) ERROR Error: Cannot find native module 'ExpoEnodeLinkSDK', js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

also even though I am using expo50+ and added configuration in app.json file Getting this error

ERROR Error: Cannot find native module 'ExpoEnodeLinkSDK', js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

"dependencies": { "@expo/metro-runtime": "~3.2.1", "@youssefhenna/expo-enode-link-sdk": "^1.0.0", "expo": "~51.0.19", "expo-status-bar": "~1.12.1", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.74.3", "react-native-web": "~0.19.10" },

YoussefHenna commented 1 month ago

Hey, can you test v1.0.1 and let me know if you face the same issue?

MrHassanNasir24 commented 1 month ago

First of all thanks for your response, Yes I have tried still facing the same issue, Although I have tried on expo version 49 and 50 still facing the same issue!