Uiactivityindicator Creation (React Native) by Wusheying
' Use strict '; var React = require (' react-native '); var {appregistry, StyleSheet, View, Activityindicatorios,} = React;c Lass Uiactivityindicator extends React.component {render () {return (<view style={styles.bgview}> <activityindicatorios animating={true} Style={styles.spinner}/> </View> ); }}class SampleApp extends React.component {render () {return (<react.navigatorios Style={styles.conta Iner} initialroute={{title: ' My App ', Component:uiactivityindicator,}}/>); }}var styles = React.StyleSheet.create ({container: {flex:1}, Bgview: {backgroundcolor: ' #eeeeee ', padding top:75, Paddingleft:10, Paddingright:10, Paddingbottom:10,}, spinner: {width:30,},}); React.AppRegistry.registerComponent (' SampleApp ', function () {return sampleapp});
Uiactivityindicator Creation (React Native)