Native Controls & JS Bridge Functions
A reference guide for controlling native UI elements and triggering JavaScript functions through the WebtoNative bridge.
1. Trigger JavaScript Functions via URL Scheme
Syntax:-
w2n://jsFunction:YOUR_JS_CODE
Example:-
w2n://jsFunction:alert("Hello World");
This will execute the JavaScript alert("Hello World") inside the WebView.2. Hide Native Components
Available Components:
3. Show Native Components
Available Components:
3. Setting Navigation Bar color in android
4. Pinch to zoom setting control in Android
5. Invoke Sidebar in Android and iOS
6. Hiding the splash screen in Android and iOS
Last updated