Expo 𝝠 🤝 Jetpack Glance
Built a custom config plugin to bring Jetpack Glance widgets into an Expo React Native Android app.
What the plugin handles:
Generates AppWidget, WidgetReceiver Kotlin files
Adds Glance dependencies in build.gradle
Syncs widget source code from a /widgets folder into native project on prebuild
Create res/@xml for AppWidgetProviderInfo metadata into native project on prebuild
Injects <receiver> entries into AndroidManifest.xml
Supports widget image & XML assets.
Your upvotes and feedback are welcome!
Words have more power than we think. Be kind.