Answers for "html to react native"

0

html to react native

import React, { Component } from 'react';
import { WebView } from 'react-native';

class MyInlineWeb extends Component {
  render() {
    return (
      <WebView
        originWhitelist={['*']}
        source={{ html: '<h1>Hello world</h1>' }}
      />
    );
  }
}
Posted by: Guest on September-29-2020
0

react native render html not rerender

your need to add some key to attribute key={index} that force re-render
 <HTML key={index} html={htmlContent} imagesMaxWidth={Dimensions.get('window').width} />
Posted by: Guest on July-26-2020

Code answers related to "html to react native"

Browse Popular Code Answers by Language