For Android Only
- Install
npm install react-native-background-check
- Link your native dependencies:
react-native link react-native-background-check
- Compile and have fun!
Include the library in your code:
import BackgroundCheckModule from 'react-native-background-check';
Simple test function, call Android toast api.
Open Android Setting page.
Bring your app to Background, you'd better check if your app in foreground befroe you call it.
Bring your app to Foreground, you'd better check if your app in background befroe you call it.
Set window flags to light your screen, and bring app over lock screen.
Clear window flags you set in lightScreen()
Working on it...
Feel free to create an issue