React Native Launcher
App launcher via alarm
Install
npm install react-native-launcher --save
Setup
- In
android/settings.gradle
//...include ':react-native-launcher'
- In
android/app/build.gradle
dependencies { //... implementation project(':react-native-launcher') //...}
Usage
Import
;
An example can be found here
Notice
delay
param works as a delayed time before launch and as a unique identifier
canDrawOverlays
may not work on Android Oreo. See this question
getLaunchArgs
only works for new intents and not for the first intent
Credits
Author Vlad Kalyuzhnyu