react-native-timacare 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  //@ts-nocheck
2
- import { observer } from 'mobx-react-lite';
2
+ import { observer, Observer } from 'mobx-react-lite';
3
3
  import React, { useEffect, useRef, useState } from 'react';
4
4
  import {
5
5
  Alert,
@@ -22,6 +22,7 @@ import {
22
22
  request,
23
23
  RESULTS,
24
24
  } from 'react-native-permissions';
25
+ import Loading from '../../components/Loading';
25
26
 
26
27
  export const Video = observer(function Video(props: any) {
27
28
  const navigation = useNavigation();
@@ -362,6 +363,7 @@ export const Video = observer(function Video(props: any) {
362
363
  alignItems: 'center',
363
364
  marginBottom: 20,
364
365
  }}
366
+ disabled={videoStore.isLoading}
365
367
  onPress={() => {
366
368
  startVideo();
367
369
  }}
@@ -371,6 +373,7 @@ export const Video = observer(function Video(props: any) {
371
373
  )}
372
374
  </View>
373
375
  </View>
376
+ <Observer>{() => <Loading isLoading={videoStore.isLoading} />}</Observer>
374
377
  </SafeAreaView>
375
378
  );
376
379
  });
@@ -11,6 +11,7 @@ class Store {
11
11
  try {
12
12
  this.isLoading = true;
13
13
  const response = await Api.getInstance().uploadVideo(loanID, body);
14
+ console.log(response);
14
15
  this.isLoading = false;
15
16
  if (response.kind === 'ok') {
16
17
  if (response.data.meta.errorCode === 200) {