Skip to main content

WebView

WebView is a component that displays web content within your app.

Usage

// URL Source
<WebView
source={{ uri: 'https://example.com' }}
/>

// HTML Source
<WebView
source={{ html: '<h1>Hello World</h1>' }}
/>

Props

source

Type: { uri: string } | { html: string } Required: true

The content to display in the WebView. Can be either a URL or HTML content.