Android Setup
Once you have installed Voltra for Android, configure the Expo plugin and use @use-voltra/android for widget JSX.
1. Configure the Expo Plugin
Section titled “1. Configure the Expo Plugin”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.
2. Prebuild for Android
Section titled “2. Prebuild for Android”Update your native Android project:
npx expo prebuild --platform androidyarn dlx expo prebuild --platform androidpnpm dlx expo prebuild --platform androidbunx expo prebuild --platform android3. Run the app
Section titled “3. Run the app”npx expo run:androidYour widget should now be available in the Android widget picker!