Ei kuvausta

LocalPageLoad.tsx 483B

12345678910111213141516
  1. import React, {Component} from 'react';
  2. import {View, Text, Alert, TextInput, Button} from 'react-native';
  3. import WebView from 'react-native-webview';
  4. const localHtmlFile = require('../assets/test.html');
  5. export default class LocalPageLoad extends Component<Props, State> {
  6. render() {
  7. return (
  8. <View>
  9. <View style={{ width: '100%', height: '100%' }}>
  10. <WebView source={localHtmlFile}/>
  11. </View>
  12. </View>
  13. );
  14. }
  15. }