Skip to content

Commit 9cbfed9

Browse files
committed
docs: fix widget action typos
1 parent c0c443b commit 9cbfed9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/docs/tutorial/register-widget-expo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const widgetConfig: WithAndroidWidgetsParams = {
5252
previewImage: './assets/widget-preview/hello.png', // Path to widget preview image
5353

5454
// How often, in milliseconds, that this AppWidget wants to be updated.
55-
// The task handler will be called with widgetAction = 'UPDATE_WIDGET'.
55+
// The task handler will be called with widgetAction = 'WIDGET_UPDATE'.
5656
// Default is 0 (no automatic updates)
5757
// Minimum is 1800000 (30 minutes == 30 * 60 * 1000).
5858
updatePeriodMillis: 1800000,

docs/docs/tutorial/register-widget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Create a new xml file in the resources directory containing the details about th
9696
</appwidget-provider>
9797
```
9898

99-
- `android:updatePeriodMillis` How often, in milliseconds, that this AppWidget wants to be updated. The task handler will be called with `widgetAction = 'UPDATE_WIDGET'`. See the official docs [here](https://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#updatePeriodMillis)
99+
- `android:updatePeriodMillis` How often, in milliseconds, that this AppWidget wants to be updated. The task handler will be called with `widgetAction = 'WIDGET_UPDATE'`. See the official docs [here](https://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#updatePeriodMillis)
100100
- `android:previewImage` should reference the preview image we added previously
101101
- `android:description` can be added or not, depending on if we added a description in the previous step
102102

0 commit comments

Comments
 (0)