Post by Akshay Jadhav

Akshay Jadhav
@akshayjadhav • #show  • 10 May, 25

Expo 𝝠 🤝 Jetpack Glance

Built a custom config plugin to bring Jetpack Glance widgets into an Expo React Native Android app.


What the plugin handles:


  1. Generates AppWidget, WidgetReceiver Kotlin files

  2. Adds Glance dependencies in build.gradle

  3. Syncs widget source code from a /widgets folder into native project on prebuild

  4. Create res/@xml for AppWidgetProviderInfo metadata into native project on prebuild

  5. Injects <receiver> entries into AndroidManifest.xml

  6. Supports widget image & XML assets.

Your upvotes and feedback are welcome!

Words have more power than we think. Be kind.