Skip to content

high-performance-hery/react-native-widget-center

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 36.8%
  • Objective-C 22.8%
  • JavaScript 16.5%
  • Starlark 8.9%
  • Swift 7.4%
  • Ruby 7.1%
  • C 0.5%