WebView

PHOTO EMBED

Tue Sep 06 2022 08:04:57 GMT+0000 (Coordinated Universal Time)

Saved by @onlinecesaref #react.js

import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View, WebView } from 'react-native';

export default class App extends Component {
  render() {
    var htmlContent = 'test';

    return (
      <WebView
        style={styles.container}
        javaScriptEnabled={true}
        domStorageEnabled={true}
        source={{ html: htmlContent }}
      />
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#e5e5e5',
  },
});
content_copyCOPY