0.2.0 • Published 1 year ago

@calitb/react-native-widgetkit v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

WidgetKit

An interface to WidgetCenter apis WidgetCenter.

  • :white_check_mark: Built with Expo's Module API
  • :white_check_mark: Written in TypeScript and Swift
  • :apple: 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>;
}