diff --git a/App.js b/App.js
index 17e675a..cd5a098 100644
--- a/App.js
+++ b/App.js
@@ -424,21 +424,24 @@ getContentView() {
}
}
-render() {
-
- if (this.state.progress) {
- if (this.state.progress.totalBytes > 0)
- return (
- {this.state.syncMessage}{'\n'}
- {this.state.progress.receivedBytes} of {this.state.progress.totalBytes} bytes received{'\n'}
-
- );
+getUpdateView() {
+ if (this.state.progress.totalBytes > 0)
return (
- {this.state.syncMessage}
+ {this.state.syncMessage}{'\n'}
+ {this.state.progress.receivedBytes} of {this.state.progress.totalBytes} bytes received{'\n'}
);
- }
+ return (
+ {this.state.syncMessage}
+
+ );
+}
+
+render() {
+ if (this.state.progress) {
+ this.getUpdateView();
+ }
return (