How can I listen to physical buttons with corresponding answers?

I am trying to detect when the user presses the volume up button in a reaction application. I do not use any media as music or video directly on the phone, I want to use the volume buttons for another purpose. For example: starting a camera snapshot.

+4
source share
3 answers

This looks promising: https://github.com/c19354837/react-native-system-setting

Also for brightness, Wifi switch, location, Bluetooth status

Works on iOS and Android

+1
source
0
0
source

Source: https://habr.com/ru/post/1656917/


All Articles