'separate activity that runs if the screen is looked - react native

How can I run screen with action buttons once the user receives a push notification if the phone is locked? I am implementing webrtc in an app and I want to ahow a ringing screen if the phone is locked.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source