Uiimageview Creation (React Native) by Wusheying
' Use strict '; var React = require (' react-native '); var {appregistry, StyleSheet, View, Image,} = React;class Uiimagevie W extends React.component {render () {return (<view style={styles.bgview}> <image Source = {{uri: ' Http://img.wdjimg.com/image/video/64d23dde9daac32367954b7c8a803da0_0_0.jpeg '}} style = {styles . Image}/> </View>); }}class SampleApp extends React.component {render () {return (<react.navigatorios Style={styles.conta Iner} initialroute={{title: ' My App ', Component:uiimageview,}}/>); }}var styles = React.StyleSheet.create ({container: {flex:1}, Bgview: {backgroundcolor: ' #eeeeee ', padding top:75, Paddingleft:10, Paddingright:10, Paddingbottom:10,}, Image:{width:200,height:200,marginright:10},} ); React.AppRegistry.registerComponent (' SampleApp ', function () {return sampleapp});
Creation of Uiimageview (React Native)