-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.config.js
More file actions
32 lines (30 loc) · 1.04 KB
/
app.config.js
File metadata and controls
32 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const widgetConfig = {
// Paths to all custom fonts used in all widgets
widgets: [
{
name: 'studioWidget', // This name will be the **name** with which we will reference our widget.
label: 'FitX Widget', // Label shown in the widget picker
minWidth: '80dp',
minHeight: '80dp',
description: 'FitX Studio Auslastung', // Description shown in the widget picker
previewImage: './assets/images/widget.png', // Path to widget preview image
resizeMode: 'horizontal|vertical',
// How often, in milliseconds, that this AppWidget wants to be updated.
// The task handler will be called with widgetAction = 'UPDATE_WIDGET'.
// Default is 0 (no automatic updates)
// Minimum is 1800000 (30 minutes == 30 * 60 * 1000).
updatePeriodMillis: 1800000,
},
],
};
export default ({ config }) => ({
...config,
name: 'FitXWidget',
plugins: [
'expo-font',
'expo-router',
'@sentry/react-native',
'expo-background-task',
['react-native-android-widget', widgetConfig],
],
});