$ npm install --save react-native-webview
$ react-native link react-native-webview
หมายเหตุ: หากคุณต้องการถอนการติดตั้ง React Native WebView ให้เรียกใช้ react-native unlink react-native-webview เพื่อยกเลิกการเชื่อมโยง
import React, { Component } from 'react';
import { WebView } from 'react-native-webview';
class MyWeb extends Component {
render() {
return (
<WebView
source={{ uri: https://www.matumweb.com/' }}
style={{ marginTop: 20 }}
/>
);
}
}
ภาพโดย https://aboutreact.com/
25 กันยายน 2564
23 กันยายน 2564
23 กันยายน 2564
26 มีนาคม 2563
11 มีนาคม 2563
19 มกราคม 2563
© 2020 Matumweb.com | Template by Inovatik