| @@ -424,21 +424,24 @@ getContentView() { | |||||
| } | } | ||||
| } | } | ||||
| render() { | |||||
| if (this.state.progress) { | |||||
| if (this.state.progress.totalBytes > 0) | |||||
| return ( | |||||
| <Text style={styles.updatePage}>{this.state.syncMessage}{'\n'} | |||||
| {this.state.progress.receivedBytes} of {this.state.progress.totalBytes} bytes received{'\n'} | |||||
| </Text> | |||||
| ); | |||||
| getUpdateView() { | |||||
| if (this.state.progress.totalBytes > 0) | |||||
| return ( | return ( | ||||
| <Text style={styles.updatePage}>{this.state.syncMessage} | |||||
| <Text style={styles.updatePage}>{this.state.syncMessage}{'\n'} | |||||
| {this.state.progress.receivedBytes} of {this.state.progress.totalBytes} bytes received{'\n'} | |||||
| </Text> | </Text> | ||||
| ); | ); | ||||
| } | |||||
| return ( | |||||
| <Text style={styles.updatePage}>{this.state.syncMessage} | |||||
| </Text> | |||||
| ); | |||||
| } | |||||
| render() { | |||||
| if (this.state.progress) { | |||||
| this.getUpdateView(); | |||||
| } | |||||
| return ( | return ( | ||||
| <ImageBackground style={styles.background} resizeMode='center' source={require('./image/background.png')}> | <ImageBackground style={styles.background} resizeMode='center' source={require('./image/background.png')}> | ||||