import { WebView } from 'react-native-webview'
import { View } from 'react-native'
<View style={style.mLoginCodeWrap}>
<WebView
originWhitelist={['*']}
source={
{ html: '<div style="font-size: 100px;color:red;">Hello world</div>' }}
></WebView>
</View>
mLoginCodeWrap: {height: 60, marginBottom: 20}
react native渲染html
猜你喜欢
转载自blog.csdn.net/xutongbao/article/details/130769742
今日推荐
周排行