Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/androidovshchik/react-native-todorant-widget
- Owner: androidovshchik
- Created: 2020-08-23T05:46:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-23T16:34:25.000Z (over 3 years ago)
- Last Synced: 2024-10-01T16:54:45.010Z (about 2 months ago)
- Language: Kotlin
- Homepage: https://www.npmjs.com/package/react-native-todorant-widget
- Size: 436 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## React Native Todorant Widget
> Todorant widget on Android### 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)