0.0.9 • Published 3 years ago

react-native-widget-center v0.0.9

Weekly downloads
249
License
MIT
Repository
github
Last release
3 years ago

react-native-widget-center

Only supports iOS at the moment

Getting started

$ yarn add react-native-widget-center

Add WidgetKit as optional linked framework

  • Go to your app Build Phases
  • Under Linked Binary with Libraries, add WidgetKit.framework
  • Set WidgetKit.framework Status to Optional

Usage

import RNWidgetCenter from "react-native-widget-center";

// reload specific kind of widget (kind is specified in your WidgetConfiguration)
RNWidgetCenter.reloadTimelines("my.widget.type");

// reload all widget timelines
RNWidgetCenter.reloadAllTimelines();

// get installed widgets configuration
RNWidgetCenter.getCurrentConfigurations().then((result) => {
  // do something
});
0.0.9

3 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago