-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: VolumeManagerModule setupKeyListener NullPointerException error #32
Comments
in the file
While you won't have this fix in the lib, you can make this change and then use this command in your project's terminal: npx patch-package react-native-volume-manager this will create a patch with the changes (the file shouldn't be large when created, it should only have the changes) and whenever you install node_modules it will use this patch to make your change. this error is similar to this one: |
We are also seeing a lot of crashes due to this. Any chance it can be merged @hirbod ? |
I'll tackle this soon, I have lots of private things going on lately, sorry for the delay. |
Thank you! |
We are getting a lot of error reports like this in our app which uses your library:
Could you please think about proper fix for this?
We are currently early returning in
setupKeyListener
method ifmContext.getCurrentActivity()
returnsnull
, but this probably could be handled betterThis happens on
"react-native": "0.68.7"
, unfortunately im not able to reproduce this issue myselfThe text was updated successfully, but these errors were encountered: