Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/androidovshchik/react-native-launcher


https://github.com/androidovshchik/react-native-launcher

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

## React Native Launcher
> App launcher via alarm


npm version

### Install

```bash
npm install react-native-launcher --save
```

### Setup

* In `android/settings.gradle`

```gradle
//...
include ':react-native-launcher'
```

* In `android/app/build.gradle`

```gradle
dependencies {
//...
implementation project(':react-native-launcher')
//...
}
```

### Usage

Import

```typescript
import LauncherPlugin from 'react-native-launcher';
```

An example can be found [here](https://github.com/androidovshchik/react-native-launcher/blob/master/example/App.tsx)

### 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](https://stackoverflow.com/questions/46173460/why-in-android-8-method-settings-candrawoverlays-returns-false-when-user-has)

`getLaunchArgs` only works for new intents (For the first intent see [implementation](https://github.com/androidovshchik/react-native-launcher/blob/master/example/android/app/src/main/java/defpackage/example/MainActivity.kt))

### Credits

Author [Vlad Kalyuzhnyu](https://github.com/androidovshchik)