All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fix order in which clickable views are created
targetCellWidthandtargetCellHeightoptions in config plugin
- Fix crash on Android 6 when
clickActionis present in the widget clickActionnow works only from Android 7 and up
- Handle cached image file import in expo
requestWidgetUpdateByIdfunction to update single widget
- Support for network svg images in
SvgWidget
- Fix layout when scrolling items with different size in
ListWidget
- Allow clickable views inside list items on Samsung devices
- Allow clickable views inside list items
- Increased background task timeout to 30s
- Added
overflowprop toFlexWidgetandOverlapWidgetthat can be used to clip the view if it has border radius
- Added
allowFontScalingprop toTextWidgetto specify whether fonts should scale to respect Text Size accessibility settings
- Fix compatibility with React Native < 71
- Use
DefaultReactActivityDelegateinstead ofReactActivityDelegate - Fix compatibility with React Native 71
- Ability to configure (and reconfigure) widget once it is added on home screen
- Upgrade to React Native 0.72.3
- Upgrade to Expo 49
- Fix crash on Android <12 when using click action
- Crop widget when reported and actual size are different on some launchers, instead of scaling because click targets are missaligned when scaling
- Schedule widget updates with
updatePeriodMillis - Widget task handler called with
WIDGET_UPDATEwidgetAction on scheduled update - Widget task handler called with
WIDGET_DELETEDwhen the widget is removed from the home screen - Widget taks handler called with
WIDGET_RESIZEDon resize, without needing to click on it again
- Removed "Click to update widget" text and requirement to click on a widget before update
- Adding/resizing works now without requiring a widget click
- Requirement for
android.permission.FOREGROUND_SERVICE - Removed
RNWidgetBackgroundTaskService. For bare React Native it should be removed from AndroidManifest. Expo build are handled with the app plugin
- Log native error in WidgetPreview
- Fixed crash when items in
ListWidgetdo not haveclickActionandclickActionData - Set default
heightandwidthonListWidgettomatch_parent - Don't call widget handler when clicking on a list item without
clickAction
- Fixed crash when adding widget next to Array.map
- Added
ListWidgetthat can show a scrollable list of items
- Fix crash on iOS due to linking check
- Setting
clickAction="OPEN_APP"on a widget primitive will open the app when clicked - Setting
clickAction="OPEN_URI" clickActionData={{ uri: 'https://google.com' }}on a widget primitive will open google in web browser - Setting
clickAction="OPEN_URI" clickActionData={{ uri: 'myapp://deep-link' }}on a widget primitive will open the deep link inmyappif deep linking is configured
- Fixed an issue where clicking on a widget with nested
clickActionwas triggering the topmost one, instead of the one directly under the clicked area
- Upgrade to React Native 0.71.3
- Upgrade to Expo 48
- Optional callback
widgetNotFoundinrequestWidgetUpdate - Exposed
getWidgetInfofunction that returns a list of widgets added on the home screen
- Fixed an issue for
FlexWidgetwhen usingjustifyContentwith value'space-around', 'space-between', 'space-evenly'with only one child - Fixed how font files are loaded from
AssetManager
- Initial Release