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-todorant-widget

Todorant widget on Android
https://github.com/androidovshchik/react-native-todorant-widget

Last synced: about 1 month ago
JSON representation

Todorant widget on Android

Awesome Lists containing this project

README

        

## React Native Todorant Widget
> Todorant widget on Android


npm version

### Install

```bash
npm install react-native-todorant-widget --save
```

### Setup

* In `android/settings.gradle`

```gradle
//...
include ':react-native-todorant-widget'
```

* In `android/app/build.gradle`

```gradle
dependencies {
//...
implementation project(":react-native-todorant-widget")
//...
}
```

### Usage

Import

```typescript
import TodorantWidget from 'react-native-todorant-widget';
```

Enable/disable widgets for user at all

```javascript
TodorantWidget.toggle(true);
```

Force update all widgets on user's home screen

```javascript
TodorantWidget.forceUpdateAll();
```

### Credits

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