@calitb/react-native-widgetkit
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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>;
}

Package Sidebar

Install

npm i @calitb/react-native-widgetkit

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

6.02 kB

Total Files

14

Last publish

Collaborators

  • calitb