Android Setup

Once you have installed Voltra, you need to configure the Expo plugin for Android.

1. Configure the Expo Plugin

Add the Voltra plugin to your app.json or app.config.js:

{
  "expo": {
    "plugins": [
      [
        "voltra",
        {
          "android": {
            "widgets": [
              {
                "id": "my_widget",
                "name": "My First Widget",
                "description": "A simple Voltra widget"
              }
            ]
          }
        }
      ]
    ]
  }
}

2. Prebuild for Android

Update your native Android project:

npm
yarn
pnpm
bun
npx expo prebuild --platform android

3. Run the app

npx expo run:android

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

Need React or React Native expertise you can count on?