Skip to content

Instantly share code, notes, and snippets.

@weeravit
Created May 1, 2017 10:28
Show Gist options
  • Select an option

  • Save weeravit/56075d9569d7ff8db22bae19eb200894 to your computer and use it in GitHub Desktop.

Select an option

Save weeravit/56075d9569d7ff8db22bae19eb200894 to your computer and use it in GitHub Desktop.
react native webview not work on Android API24
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
WebView
} from 'react-native';
export default class test extends Component {
render() {
return (
<View style={styles.container}>
<WebView
source={{uri: 'https://www.facebook.com'}}
style={styles.webStyles}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1
},
webStyles: {
flex: 1
}
});
AppRegistry.registerComponent('test', () => test);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment