Created
May 1, 2017 10:28
-
-
Save weeravit/56075d9569d7ff8db22bae19eb200894 to your computer and use it in GitHub Desktop.
react native webview not work on Android API24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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