Notes on WebView - ChatGPT
Last updated on 1 Sep. 2025 Sections in post 1. WebView 2. WebView vs Native (React Native) Performance (perceived) 3. Expo 'use dom' Directive 4. React Native for Windows + react-native-webview Section Summaries 1. WebView A WebView is basically a mini web browser engine that can be embedded inside a native app. It lets the app show web content (HTML, CSS, JavaScript) inside what looks like a normal screen of the app. The OS provides the WebView component: On Android → it’s based on Chromium (Android System WebView). On iOS → it’s WKWebView (based on Safari’s WebKit engine). On Windows/macOS/Linux → you get equivalents (e.g., WebView2 on Windows uses the Edge/Chromium engine). You, as a developer, pass HTML, CSS, and JS (either as a file or a URL) into the WebView. The WebView engine parses HTML/CSS, runs JS, and renders the UI just like a browser would. I t does not convert HTML/CSS into native UI widgets (e.g., <button> in HTML is not t...