punarinta / react-native-sound-level

A package to dynamically measure sound input level in React Native applications. Can be used to help user to adjust microphone sensitivity.
MIT License
79 stars 45 forks source link

Trying to run with Expo NativeModules.RNSoundLevel is undefined? #16

Closed ChristianDBrooks closed 4 years ago

ChristianDBrooks commented 4 years ago

New to React-Native, and am trying to use this package. When I try to run it in expo following the readme, I get an error when executing:

RNSoundLevel.start();

The error is: "TypeError: null is not an object (evaluating 'SoundLevelModule.start')"

For some reason NativeModules.SoundLevelModule, and NativeModules.SoundLevel are both undefined in the index.js file.

ChristianDBrooks commented 4 years ago

I know understand that this does not run with "Managed Expo Workflow" projects.

Reference: https://docs.expo.io/workflow/using-libraries/