Browse Source

preset totalProgress to avoid error on android

Ifedapo Olarewaju 6 năm trước cách đây
mục cha
commit
9f02d749b9
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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' &&