Skip to content

androidovshchik/react-native-launcher

Repository files navigation

React Native Launcher

App launcher via alarm

npm version

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 (For the first intent see implementation)

Credits

Author Vlad Kalyuzhnyu