sAleksovski / react-native-android-widget

Build Android Widgets with React Native

Home Page:https://sAleksovski.github.io/react-native-android-widget/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update widget by widgetId

ReddyyZ opened this issue · comments

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?

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.

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

I just published 0.13.0 that has requestWidgetUpdateById function.

Thanks!!