瀏覽代碼

preset totalProgress to avoid error on android

Ifedapo Olarewaju 6 年之前
父節點
當前提交
9f02d749b9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/react-native-expo/App.js

+ 2 - 1
examples/react-native-expo/App.js

@@ -53,7 +53,8 @@ export default class App extends React.Component {
       isPaused: false,
       uploadStarted: false,
       uploadComplete: false,
-      info: null
+      info: null,
+      totalProgress: 0
     }
 
     this.isReactNative = (typeof navigator !== 'undefined' &&