Skip to content

Android Setup

Once you have installed Voltra for Android, configure the Expo plugin and use @use-voltra/android for widget JSX.

Add @use-voltra/android-client to your app.json or app.config.js:

{
"expo": {
"plugins": [
[
"@use-voltra/android-client",
{
"enableNotifications": true,
"widgets": [
{
"id": "my_widget",
"displayName": "My First Widget",
"description": "A simple Voltra widget",
"targetCellWidth": 2,
"targetCellHeight": 2
}
]
}
]
]
}
}

See Plugin Configuration for all options.

Update your native Android project:

Terminal window
npx expo prebuild --platform android
Terminal window
npx expo run:android

Your widget should now be available in the Android widget picker!