react-native-autoheight-webview
npm install react-native-autoheight-webview –save (rn >= 0.47)
npm install react-native-autoheight-webview@0.3.1 –save (0.44 <= rn < 0.47)
npm install react-native-autoheight-webview@0.2.3 –save (rn < 0.44)
<AutoHeightWebView
scalesPageToFit={Platform.OS === 'android' ? true : false}
enableBaseUrl={true}
heightOffset={15}
style={{backgroundColor:'#fff', width:Dimensions.get('window').width - 28, marginTop: 20}}
enableAnimation={false}
animationDuration={0}
source={{ html: `<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0" />
</head>
<body>
${this.state.data.content}
<style media="screen">
html,body{padding:0;min-height:64px;backgroundColor:'#fff'}
img{max-width: 100%}
</style>
</body>
</html>`,baseUrl:''}}
/>