outaTiME / react-native-widgetkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WidgetKit

An interface to WidgetCenter apis WidgetCenter.

  • ✅ Built with Expo's Module API
  • ✅ Written in TypeScript and Swift
  • 🍎 Currently iOS only

Installation

  1. Install the package
npm i @calitb/react-native-widgetkit

Usage

Standard Defaults

import WidgetKit from '@calitb/react-native-widgetkit';

await WidgetKit.standard.reloadAllTimelines();

API

interface WidgetKit {
  /* Standard object */
  standard: WidgetKit;
  /* Reloads the timelines for all configured widgets belonging to the containing app. */
  reloadAllTimelines(): Promise<any>;
}

About


Languages

Language:Ruby 49.0%Language:Swift 20.2%Language:TypeScript 17.2%Language:JavaScript 13.6%