Closed spearmootz closed 6 years ago
I'm also getting a blank component trying this module. Not sure what I might have done wrong, I have no build time or compile time error.
same for me, but it worked in dec 2017
Same here !
import React, { Component } from 'react';
import {
AppRegistry,
Platform,
StyleSheet,
Text,
View,
WebView
} from 'react-native';
var WebViewAndroid = require('react-native-webview-android');
var SITE_URL = "https://google.fr";
type Props = {};
export default class App extends Component<Props> {
render() {
return <WebViewAndroid ref="webViewAndroidSample" javaScriptEnabled={true} geolocationEnabled={false} builtInZoomControls={false} url={SITE_URL} />;
}
}
Hi @croftman
Please try to insert your webview inside a View, and please try to put some style with and height or flex: 1 in your container and WebViewAndroid.
Nice ! It works just with flex :1 :) Thank you !
If don't have, add https beginning of the url
i dont know why i get a blank screen when i use this module. im trying this out on index.js