peterferguson / react-native-passkeys

78 stars 10 forks source link

Error: Cannot find native module 'ReactNativePasskeys' #10

Closed panteliselef closed 1 month ago

panteliselef commented 6 months ago

Hey I'm facing this error Error: Cannot find native module 'ReactNativePasskeys', js engine: hermes

I've installed the package with

npx expo install react-native-passkeys

I've run

npx pod-install

This is the output of the above command. As you see similar packages like(react-native-passkey) are "Auto-linked"

image

simulator_screenshot_F1875535-B30C-4D77-A9DC-F782B77A5B77

first-dev commented 5 months ago

@panteliselef were you able to fix this? if yes, could you please share what you did thanks.

first-dev commented 5 months ago

Anyone facing the same issue, add "deploymentTarget": "15.0" this to your app.json like so:

{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "ios": {
            "deploymentTarget": "15.0"
          }
        }
      ]
    ]
  }
}
panteliselef commented 5 months ago

@first-dev unfortunately i didn't get it to work

peterferguson commented 5 months ago

Hey @panteliselef I cannot replicate the failing to autolink, maybe there is some issue with having both react-native-passkey & this library installed what with the similar names.

Were you able to replicate in a MRE?

gutenye commented 4 months ago

I had the same issue, solution from @first-dev fixed it, thanks. You need a minimal deploymentTarget of 15.0 to use this library.