1import React, { Component } from 'react';
2import { WebView } from 'react-native';
3
4class MyInlineWeb extends Component {
5 render() {
6 return (
7 <WebView
8 originWhitelist={['*']}
9 source={{ html: '<h1>Hello world</h1>' }}
10 />
11 );
12 }
13}
14
1your need to add some key to attribute key={index} that force re-render
2 <HTML key={index} html={htmlContent} imagesMaxWidth={Dimensions.get('window').width} />
3