Просмотр исходного кода

preset totalProgress to avoid error on android

Ifedapo Olarewaju 6 лет назад
Родитель
Сommit
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' &&