-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
26 lines (24 loc) · 964 Bytes
/
app.config.js
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
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: [['react-native-android-widget', widgetConfig]],
});