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

Fix crash on `start` #35

Open gavrilikhin-d opened 1 year ago

gavrilikhin-d commented 1 year ago

PR that implements fix from #34.

Also marks start and stop as async, to be able to catch promise rejections from js code.

Note: did not check iOS code

gavrilikhin-d commented 1 year ago

Should prevent crashes in #22 and #15. However, callback, obviously, will never be called

gavrilikhin-d commented 11 months ago

Also fixes build issue #33

gavrilikhin-d commented 4 months ago

@punarinta can you check this PR?