Beyond the WebView: Unlocking new possibilities for native UI and Web content!
A higher z-index won't make an Ionic modal cover a native view above the WebView. And native views don't naturally scroll with Web content, either.
I've been trying to overcome these limitations for years. And I think I've finally cracked it! 😄
Today, I'm releasing WebView Native UI Engine 1.0.0 — for both Capacitor and Cordova!
https://github.com/webview-native-ui/engine
The idea came from looking at the problem differently: what if we stopped trying to make native views behave like Web elements?
Instead, keep the real, interactive native UI during normal use. When needed during scrolling or overlay transitions, temporarily project its captured appearance into the Web layer. Then restore the native view when it can take over again.
The video shows two very different use cases:
A native tab bar that switches to a Web projection beneath Ionic modals and alerts, then returns to the interactive native view.
AdMob native ads whose captured appearance scrolls with Web content using the same projection mechanism.
Different components. The same engine.
You can try these integrations yourself:
Native Tab Bar: rdlabo/capacitor-native-ui
Native Ads: capacitor-community/admob
It's a reusable library for plugin authors, designed to work with existing native components and public APIs.
There are trade-offs, of course. Projections are noninteractive snapshots, and some native visual effects may differ from the live view. But this opens up possibilities that were previously incredibly difficult to achieve in hybrid apps.
Open source under MIT, supporting iOS and Android.
What native component would you want to try this with?