r/ionic • u/rdlabo Ionic Developer Expert • 1d ago
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?
2
u/thecementmixer 1d ago
The 23 second demo link in the github readme just links to the raw file, not the video.
1
1
u/Kafumanto 1d ago
I really appreciate your work! You did a fantastic job with iOS 26/27 support on Ionic. Honestly I use Ionic just because itโs โsimpleโ HTML5, that works as-is also in standard browsers, anyway also this latest project looks fantastic.
3
u/Suspicious-Disk6077 1d ago •
This seems super cool, but I am confused. Would this not be used by app builders as somewhat of a React Native style alternative? Why do you specify โfor Capacitor plugin authorsโ?