Also seems to be broken in UIExplorer as well.
* Sample React Native Desktop App
* https://github.com/ptmt/react-native-desktop
*/
import React from 'react-native-desktop';
const {
AppRegistry,
StyleSheet,
Text,
View,
WebView,
} = React;
const mystique = React.createClass({
render() {
return (
<View style={styles.container}>
<WebView
scrollEnabled={true}
automaticallyAdjustContentInsets={false}
style={styles.web}
javaScriptEnabled={true}
domStorageEnabled={true}
decelerationRate="normal"
ref={"google"}
source={{uri: "https://google.com"}}
startInLoadingState={true}
/>
</View>
);
}
});
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'stretch',
backgroundColor: '#F5FCFF',
},
web: {
flex:1,
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
AppRegistry.registerComponent('mystique', () => mystique);