deeeed / expo-audio-stream

14 stars 4 forks source link

Error: Cannot find native module 'ExpoAudioStream', js engine: hermes #17

Open blackboxo opened 3 weeks ago

blackboxo commented 3 weeks ago

The package works fine in Expo Web, but have this bug in iOS with Expo Go

Pety99 commented 2 days ago

Same issue here :(

Pety99 commented 2 days ago

I managed to mitigate the issue by disabling Hermes and switching to jsc. Sadly, you'll lose all of Hermes' optimizations, but at least you can get it to work.

// app.json

{
  "expo": {
    ...
    "jsEngine": "jsc",
    ...
  }
}  

In the command line:

rm -rf node_modules android ios
npm install
npx expo prebuild
npx expo start -c

Note: To get the recordings to work with IOS, I had to manually set the sample rate to 48000

deeeed commented 2 days ago

You need to eject in order to use the package.

deeeed commented 6 hours ago

I will close this if you don't provide additional steps. I am running the library on multiple projects without any issue. But you cannot run it in expo go!