Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/androidovshchik/react-native-launcher
https://github.com/androidovshchik/react-native-launcher
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/androidovshchik/react-native-launcher
- Owner: androidovshchik
- Created: 2020-10-15T04:58:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T11:25:48.000Z (about 4 years ago)
- Last Synced: 2024-04-25T17:05:22.943Z (7 months ago)
- Language: Kotlin
- Homepage: https://www.npmjs.com/package/react-native-launcher
- Size: 117 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## React Native Launcher
> App launcher via alarm### 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)