sAleksovski / react-native-android-widget

Build Android Widgets with React Native
https://sAleksovski.github.io/react-native-android-widget/
MIT License
546 stars 22 forks source link

Update widget by widgetId #77

Closed ReddyyZ closed 3 months ago

ReddyyZ commented 3 months ago

When I use requestWidgetUpdate, it updates all the widgets that have the same name, but I want to update a specific widget. I did not found anything like that in the documentation. Is that possible?

sAleksovski commented 3 months ago

Currently it is not possible.

The initial idea was that you don't need to keep track if widgets are added on the home screen and always call requestWidgetUpdate when you want to update the widget (if one is present). This way you don't need to store the widgetId, and request updates for that specific widget.

But I can add it if you need it.

ReddyyZ commented 3 months ago

If you could add this, it would be amazing! It will help me a lot

sAleksovski commented 3 months ago

I just published 0.13.0 that has requestWidgetUpdateById function.

ReddyyZ commented 3 months ago

Thanks!!