Skip to content Skip to sidebar Skip to footer

How To Make Notification Lights Work In React-native On Android?

I have a simple react-native camera app and I would like to make notification LED light up at the bottom of the phone, when app is recording. I was not able to find it on the offic

Solution 1:

As you point out, this functionality is not included in RN, but the good thing is you can easily implement it yourself in Android code. Maybe something like this can help you turn the LED on/off (by basically creating a dummy notification) and then you can build an Android module, which is actually fairly simple. You can have a look at the Toast tutorial in the official docs.


Post a Comment for "How To Make Notification Lights Work In React-native On Android?"