react-native-webview/example/examples/NativeWebpage.tsx

24 lines
502 B
TypeScript

import React, {Component} from 'react';
import {View} from 'react-native';
import WebView from 'react-native-webview';
type Props = {};
type State = {};
export default class NativeWebpage extends Component<Props, State> {
state = {};
render() {
return (
<View style={{height: 400}}>
<WebView
source={{uri: 'https://infinite.red'}}
style={{width: '100%', height: '100%'}}
// setSupportMultipleWindows={false}
/>
</View>
);
}
}