0.0.6 • Published 5 years ago
react-native-launcher v0.0.6
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
import LauncherPlugin from 'react-native-launcher';
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