React Native WebView with AutoHeight
npm install zjb-webview-autoheightYou can also add custom CSS style or javascript to your webview using below example.
`` Throw your entire HTML here
import MyWebView from 'react-native-webview-autoheight';
const customStyle = "";
const htmlContent = "This is title
startInLoadingState={true}
/>
`
``
startInLoadingState={true}
/>
(default: true)
* width (default: Screen width)
* defaultHeight (default height unless autoHeight)How it works
It is a very simple wrapper around the built-in React Native Webview, which updates the height of the webview based on a state change using onNavigationStateChange`.