react-native-timacare 2.0.14 → 2.0.16

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.
Files changed (203) hide show
  1. package/lib/commonjs/components/MHeader.js +2 -0
  2. package/lib/commonjs/components/MHeader.js.flow +101 -0
  3. package/lib/commonjs/components/MHeader.js.map +1 -0
  4. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  5. package/lib/commonjs/navigation/primary-navigator.js.flow +1 -1
  6. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  7. package/lib/commonjs/screens/cimb-sign/index.js +1 -1
  8. package/lib/commonjs/screens/cimb-sign/index.js.flow +34 -50
  9. package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
  10. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  11. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +6 -29
  12. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  13. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  14. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +8 -31
  15. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  16. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  17. package/lib/commonjs/screens/detail-loan/index.js.flow +13 -36
  18. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  19. package/lib/commonjs/screens/digital-lending/index.js +1 -1
  20. package/lib/commonjs/screens/digital-lending/index.js.flow +16 -45
  21. package/lib/commonjs/screens/digital-lending/index.js.map +1 -1
  22. package/lib/commonjs/screens/eSign/PreviewContract.js +1 -1
  23. package/lib/commonjs/screens/eSign/PreviewContract.js.flow +7 -34
  24. package/lib/commonjs/screens/eSign/PreviewContract.js.map +1 -1
  25. package/lib/commonjs/screens/eSign/index.js +1 -1
  26. package/lib/commonjs/screens/eSign/index.js.flow +7 -38
  27. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  28. package/lib/commonjs/screens/full-submit/index.js +1 -1
  29. package/lib/commonjs/screens/full-submit/index.js.flow +9 -31
  30. package/lib/commonjs/screens/full-submit/index.js.map +1 -1
  31. package/lib/commonjs/screens/full-submit/selfie.js +1 -1
  32. package/lib/commonjs/screens/full-submit/selfie.js.flow +2 -28
  33. package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
  34. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  35. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.flow +7 -33
  36. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  37. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  38. package/lib/commonjs/screens/guide-transfer-bank/index.js.flow +8 -31
  39. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  40. package/lib/commonjs/screens/home/CIMBxTima.js +1 -1
  41. package/lib/commonjs/screens/home/CIMBxTima.js.flow +2 -20
  42. package/lib/commonjs/screens/home/CIMBxTima.js.map +1 -1
  43. package/lib/commonjs/screens/home/index.js +1 -1
  44. package/lib/commonjs/screens/home/index.js.flow +37 -45
  45. package/lib/commonjs/screens/home/index.js.map +1 -1
  46. package/lib/commonjs/screens/introduction/index.js +1 -1
  47. package/lib/commonjs/screens/introduction/index.js.flow +2 -29
  48. package/lib/commonjs/screens/introduction/index.js.map +1 -1
  49. package/lib/commonjs/screens/nationalID/index.js +1 -1
  50. package/lib/commonjs/screens/nationalID/index.js.flow +7 -29
  51. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  52. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  53. package/lib/commonjs/screens/nationalIDBack/index.js.flow +7 -30
  54. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  55. package/lib/commonjs/screens/notification/index.js +1 -1
  56. package/lib/commonjs/screens/notification/index.js.flow +2 -29
  57. package/lib/commonjs/screens/notification/index.js.map +1 -1
  58. package/lib/commonjs/screens/payment-evidence/index.js +1 -1
  59. package/lib/commonjs/screens/payment-evidence/index.js.flow +3 -57
  60. package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
  61. package/lib/commonjs/screens/quick-submit/index.js +1 -1
  62. package/lib/commonjs/screens/quick-submit/index.js.flow +13 -36
  63. package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
  64. package/lib/commonjs/screens/schedule-payment/index.js +1 -1
  65. package/lib/commonjs/screens/schedule-payment/index.js.flow +6 -31
  66. package/lib/commonjs/screens/schedule-payment/index.js.map +1 -1
  67. package/lib/commonjs/screens/selfie/index.js +1 -1
  68. package/lib/commonjs/screens/selfie/index.js.flow +2 -22
  69. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  70. package/lib/commonjs/screens/sign-tima/ConfirmContract.js +1 -1
  71. package/lib/commonjs/screens/sign-tima/ConfirmContract.js.flow +2 -29
  72. package/lib/commonjs/screens/sign-tima/ConfirmContract.js.map +1 -1
  73. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  74. package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +12 -36
  75. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  76. package/lib/commonjs/screens/terms/QuickTerm.js +1 -1
  77. package/lib/commonjs/screens/terms/QuickTerm.js.flow +7 -24
  78. package/lib/commonjs/screens/terms/QuickTerm.js.map +1 -1
  79. package/lib/commonjs/screens/terms/TermScreen.js +1 -1
  80. package/lib/commonjs/screens/terms/TermScreen.js.flow +8 -39
  81. package/lib/commonjs/screens/terms/TermScreen.js.map +1 -1
  82. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  83. package/lib/commonjs/screens/uploadVideo/index.js.flow +89 -90
  84. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  85. package/lib/commonjs/services/api/api-config.js +1 -1
  86. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  87. package/lib/commonjs/services/api/api-config.js.map +1 -1
  88. package/lib/module/components/MHeader.js +2 -0
  89. package/lib/module/components/MHeader.js.map +1 -0
  90. package/lib/module/navigation/primary-navigator.js +1 -1
  91. package/lib/module/navigation/primary-navigator.js.map +1 -1
  92. package/lib/module/screens/cimb-sign/index.js +1 -1
  93. package/lib/module/screens/cimb-sign/index.js.map +1 -1
  94. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  95. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  96. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  97. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  98. package/lib/module/screens/detail-loan/index.js +1 -1
  99. package/lib/module/screens/detail-loan/index.js.map +1 -1
  100. package/lib/module/screens/digital-lending/index.js +1 -1
  101. package/lib/module/screens/digital-lending/index.js.map +1 -1
  102. package/lib/module/screens/eSign/PreviewContract.js +1 -1
  103. package/lib/module/screens/eSign/PreviewContract.js.map +1 -1
  104. package/lib/module/screens/eSign/index.js +1 -1
  105. package/lib/module/screens/eSign/index.js.map +1 -1
  106. package/lib/module/screens/full-submit/index.js +1 -1
  107. package/lib/module/screens/full-submit/index.js.map +1 -1
  108. package/lib/module/screens/full-submit/selfie.js +1 -1
  109. package/lib/module/screens/full-submit/selfie.js.map +1 -1
  110. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  111. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  112. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  113. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  114. package/lib/module/screens/home/CIMBxTima.js +1 -1
  115. package/lib/module/screens/home/CIMBxTima.js.map +1 -1
  116. package/lib/module/screens/home/index.js +1 -1
  117. package/lib/module/screens/home/index.js.map +1 -1
  118. package/lib/module/screens/introduction/index.js +1 -1
  119. package/lib/module/screens/introduction/index.js.map +1 -1
  120. package/lib/module/screens/nationalID/index.js +1 -1
  121. package/lib/module/screens/nationalID/index.js.map +1 -1
  122. package/lib/module/screens/nationalIDBack/index.js +1 -1
  123. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  124. package/lib/module/screens/notification/index.js +1 -1
  125. package/lib/module/screens/notification/index.js.map +1 -1
  126. package/lib/module/screens/payment-evidence/index.js +1 -1
  127. package/lib/module/screens/payment-evidence/index.js.map +1 -1
  128. package/lib/module/screens/quick-submit/index.js +1 -1
  129. package/lib/module/screens/quick-submit/index.js.map +1 -1
  130. package/lib/module/screens/schedule-payment/index.js +1 -1
  131. package/lib/module/screens/schedule-payment/index.js.map +1 -1
  132. package/lib/module/screens/selfie/index.js +1 -1
  133. package/lib/module/screens/selfie/index.js.map +1 -1
  134. package/lib/module/screens/sign-tima/ConfirmContract.js +1 -1
  135. package/lib/module/screens/sign-tima/ConfirmContract.js.map +1 -1
  136. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  137. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  138. package/lib/module/screens/terms/QuickTerm.js +1 -1
  139. package/lib/module/screens/terms/QuickTerm.js.map +1 -1
  140. package/lib/module/screens/terms/TermScreen.js +1 -1
  141. package/lib/module/screens/terms/TermScreen.js.map +1 -1
  142. package/lib/module/screens/uploadVideo/index.js +1 -1
  143. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  144. package/lib/module/services/api/api-config.js +1 -1
  145. package/lib/module/services/api/api-config.js.map +1 -1
  146. package/lib/typescript/components/MHeader.d.ts +7 -0
  147. package/lib/typescript/components/MHeader.d.ts.map +1 -0
  148. package/lib/typescript/screens/cimb-sign/index.d.ts.map +1 -1
  149. package/lib/typescript/screens/detail-loan/DetailLoanTima.d.ts.map +1 -1
  150. package/lib/typescript/screens/detail-loan/PaymentInfo.d.ts.map +1 -1
  151. package/lib/typescript/screens/detail-loan/index.d.ts.map +1 -1
  152. package/lib/typescript/screens/digital-lending/index.d.ts.map +1 -1
  153. package/lib/typescript/screens/eSign/PreviewContract.d.ts.map +1 -1
  154. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  155. package/lib/typescript/screens/full-submit/index.d.ts.map +1 -1
  156. package/lib/typescript/screens/full-submit/selfie.d.ts.map +1 -1
  157. package/lib/typescript/screens/guide-transfer-bank/TransferDetail.d.ts.map +1 -1
  158. package/lib/typescript/screens/guide-transfer-bank/index.d.ts.map +1 -1
  159. package/lib/typescript/screens/home/CIMBxTima.d.ts.map +1 -1
  160. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  161. package/lib/typescript/screens/introduction/index.d.ts.map +1 -1
  162. package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
  163. package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
  164. package/lib/typescript/screens/notification/index.d.ts.map +1 -1
  165. package/lib/typescript/screens/payment-evidence/index.d.ts.map +1 -1
  166. package/lib/typescript/screens/quick-submit/index.d.ts.map +1 -1
  167. package/lib/typescript/screens/schedule-payment/index.d.ts.map +1 -1
  168. package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
  169. package/lib/typescript/screens/sign-tima/ConfirmContract.d.ts.map +1 -1
  170. package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
  171. package/lib/typescript/screens/terms/QuickTerm.d.ts.map +1 -1
  172. package/lib/typescript/screens/terms/TermScreen.d.ts.map +1 -1
  173. package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
  174. package/package.json +1 -1
  175. package/src/components/MHeader.tsx +101 -0
  176. package/src/navigation/primary-navigator.tsx +1 -1
  177. package/src/screens/cimb-sign/index.tsx +34 -50
  178. package/src/screens/detail-loan/DetailLoanTima.tsx +6 -29
  179. package/src/screens/detail-loan/PaymentInfo.tsx +8 -31
  180. package/src/screens/detail-loan/index.tsx +13 -36
  181. package/src/screens/digital-lending/index.tsx +16 -45
  182. package/src/screens/eSign/PreviewContract.tsx +7 -34
  183. package/src/screens/eSign/index.tsx +7 -38
  184. package/src/screens/full-submit/index.tsx +9 -31
  185. package/src/screens/full-submit/selfie.tsx +2 -28
  186. package/src/screens/guide-transfer-bank/TransferDetail.tsx +7 -33
  187. package/src/screens/guide-transfer-bank/index.tsx +8 -31
  188. package/src/screens/home/CIMBxTima.tsx +2 -20
  189. package/src/screens/home/index.tsx +37 -45
  190. package/src/screens/introduction/index.tsx +2 -29
  191. package/src/screens/nationalID/index.tsx +7 -29
  192. package/src/screens/nationalIDBack/index.tsx +7 -30
  193. package/src/screens/notification/index.tsx +2 -29
  194. package/src/screens/payment-evidence/index.tsx +3 -57
  195. package/src/screens/quick-submit/index.tsx +13 -36
  196. package/src/screens/schedule-payment/index.tsx +6 -31
  197. package/src/screens/selfie/index.tsx +2 -22
  198. package/src/screens/sign-tima/ConfirmContract.tsx +2 -29
  199. package/src/screens/sign-tima/ViewContract.tsx +12 -36
  200. package/src/screens/terms/QuickTerm.tsx +7 -24
  201. package/src/screens/terms/TermScreen.tsx +8 -39
  202. package/src/screens/uploadVideo/index.tsx +89 -90
  203. package/src/services/api/api-config.ts +2 -2
@@ -38,6 +38,7 @@ import nationalIDStore from '../nationalID/Store';
38
38
  import Loading from '../../components/Loading';
39
39
  import LinearGradient from 'react-native-linear-gradient';
40
40
  import livenessStore from '../liveness/LivenessStore';
41
+ import MHeader from '../../components/MHeader';
41
42
 
42
43
  const logoView: ImageStyle = {
43
44
  position: 'absolute',
@@ -111,29 +112,8 @@ export const Selfie = observer(function Selfie(props: any) {
111
112
  return (
112
113
  <View style={{ flex: 1 }}>
113
114
  <Image source={require('../../assets/img/EKYC.png')} style={logoView} />
115
+ <MHeader title="Xác thực khách hàng" onBack={() => navigation.goBack()} />
114
116
  <SafeAreaView style={commonStyles.fill}>
115
- <View
116
- style={[
117
- commonStyles.alignCenter,
118
- { alignItems: 'center', marginTop: 10 },
119
- ]}
120
- >
121
- <MButton
122
- //@ts-ignore
123
- onPress={() => navigation.goBack()}
124
- style={[{ position: 'absolute', left: 16 }]}
125
- >
126
- <IconBackWhite fill={'#FFFFFF'} />
127
- </MButton>
128
- <MText
129
- style={[
130
- commonStyles.textNormalBold,
131
- { color: '#FFFFFF', fontSize: 16 },
132
- ]}
133
- >
134
- Xác thực khách hàng
135
- </MText>
136
- </View>
137
117
  <ScrollView style={commonStyles.fill}>
138
118
  <View style={{ paddingHorizontal: 16, paddingVertical: 16 }}>
139
119
  <View
@@ -28,6 +28,7 @@ import { ScreenNames } from '../../navigation';
28
28
  import Loading from '../../components/Loading';
29
29
  import appStore from '../../AppStore';
30
30
  import moment from 'moment';
31
+ import MHeader from '../../components/MHeader';
31
32
 
32
33
  const CELL_COUNT = 4;
33
34
 
@@ -87,36 +88,8 @@ export const ConfirmContract = observer(function ConfirmContract({
87
88
  return (
88
89
  <View style={{ flex: 1, backgroundColor: '#FFFFFF' }}>
89
90
  <Image source={require('../splash/Onboarding.png')} style={logoView} />
91
+ <MHeader title="Ký hợp đồng" onBack={() => navigation.goBack()} />
90
92
  <SafeAreaView style={{ flex: 1 }}>
91
- <View
92
- style={[
93
- commonStyles.alignCenter,
94
- { alignItems: 'center', height: 50, justifyContent: 'center' },
95
- ]}
96
- >
97
- <TouchableOpacity
98
- onPress={() => navigation.goBack()}
99
- style={{
100
- width: 40,
101
- height: 40,
102
- position: 'absolute',
103
- left: 8,
104
- alignItems: 'center',
105
- justifyContent: 'center',
106
- }}
107
- >
108
- <IconBack fill={color.textHeader} />
109
- </TouchableOpacity>
110
-
111
- <MText
112
- style={[
113
- commonStyles.textNormalBold,
114
- { color: color.textHeader, fontSize: 16 },
115
- ]}
116
- >
117
- Ký hợp đồng
118
- </MText>
119
- </View>
120
93
  <MText
121
94
  style={{
122
95
  marginTop: 24,
@@ -16,6 +16,7 @@ import { ScreenNames } from '../../navigation';
16
16
  import { color } from '../../theme';
17
17
  import { commonStyles } from '../CommonStyles';
18
18
  import SignTimaStore from './store';
19
+ import MHeader from '../../components/MHeader';
19
20
 
20
21
  export const ViewContract = observer(function ViewContract(props: any) {
21
22
  const navigation = useNavigation();
@@ -30,43 +31,18 @@ export const ViewContract = observer(function ViewContract(props: any) {
30
31
 
31
32
  return (
32
33
  <View style={{ flex: 1, backgroundColor: '#FFFFFF' }}>
34
+ <MHeader
35
+ title="Hợp đồng dịch vụ"
36
+ onBack={() => {
37
+ navigation.dispatch(
38
+ CommonActions.reset({
39
+ index: 1,
40
+ routes: [{ name: ScreenNames.Main }],
41
+ })
42
+ );
43
+ }}
44
+ />
33
45
  <SafeAreaView style={{ flex: 1 }}>
34
- <View
35
- style={[
36
- commonStyles.alignCenter,
37
- { alignItems: 'center', height: 50, justifyContent: 'center' },
38
- ]}
39
- >
40
- <TouchableOpacity
41
- onPress={() =>
42
- navigation.dispatch(
43
- CommonActions.reset({
44
- index: 1,
45
- routes: [{ name: ScreenNames.Main }],
46
- })
47
- )
48
- }
49
- style={{
50
- width: 40,
51
- height: 40,
52
- position: 'absolute',
53
- left: 8,
54
- alignItems: 'center',
55
- justifyContent: 'center',
56
- }}
57
- >
58
- <IconBack fill={color.textHeader} />
59
- </TouchableOpacity>
60
-
61
- <MText
62
- style={[
63
- commonStyles.textNormalBold,
64
- { color: color.textHeader, fontSize: 16 },
65
- ]}
66
- >
67
- Hợp đồng dịch vụ
68
- </MText>
69
- </View>
70
46
  <View style={{ flex: 1 }}>
71
47
  <Pdf
72
48
  source={source}
@@ -9,6 +9,7 @@ import MButton from '../../components/MButton';
9
9
  import { MText } from '../../components/MText';
10
10
  import { color } from '../../theme';
11
11
  import { commonStyles } from '../CommonStyles';
12
+ import MHeader from '../../components/MHeader';
12
13
 
13
14
  export const QuickTerm = observer(function QuickTerm(props: any) {
14
15
  const navigation = useNavigation();
@@ -21,31 +22,13 @@ export const QuickTerm = observer(function QuickTerm(props: any) {
21
22
 
22
23
  return (
23
24
  <View style={{ flex: 1, backgroundColor: 'white' }}>
25
+ <MHeader
26
+ title="T&C_Điều khoản và điều kiện"
27
+ onBack={() => {
28
+ navigation.goBack();
29
+ }}
30
+ />
24
31
  <SafeAreaView style={{ flex: 1 }}>
25
- <View
26
- style={[
27
- commonStyles.alignCenter,
28
- { alignItems: 'center', marginTop: 10 },
29
- ]}
30
- >
31
- <MButton
32
- //@ts-ignore
33
- onPress={() => {
34
- navigation.goBack();
35
- }}
36
- style={[{ position: 'absolute', left: 16 }]}
37
- >
38
- <IconBack fill={color.textHeader} />
39
- </MButton>
40
- <MText
41
- style={[
42
- commonStyles.textNormalBold,
43
- { color: color.textHeader, fontSize: 16 },
44
- ]}
45
- >
46
- T&C_Điều khoản và điều kiện
47
- </MText>
48
- </View>
49
32
  <Pdf
50
33
  trustAllCerts={false}
51
34
  source={
@@ -12,6 +12,7 @@ import { IconBack } from '../../assets/icons';
12
12
  import Pdf from 'react-native-pdf';
13
13
  import LinearGradient from 'react-native-linear-gradient';
14
14
  import livenessStore from '../liveness/LivenessStore';
15
+ import MHeader from '../../components/MHeader';
15
16
 
16
17
  export const TermScreen = observer(function TermScreen(props) {
17
18
  const navigation = useNavigation();
@@ -26,48 +27,16 @@ export const TermScreen = observer(function TermScreen(props) {
26
27
 
27
28
  return (
28
29
  <View style={{ flex: 1, backgroundColor: 'white' }}>
30
+ <MHeader
31
+ title="Điều khoản"
32
+ onBack={() => {
33
+ back();
34
+ }}
35
+ />
29
36
  <SafeAreaView style={{ flex: 1 }}>
30
37
  <View style={{ flex: 1 }}>
31
- <View
32
- style={[
33
- commonStyles.row,
34
- commonStyles.alignCenter,
35
- { paddingHorizontal: 16, height: 55 },
36
- ]}
37
- >
38
- <MButton
39
- onPress={() => {
40
- back();
41
- }}
42
- style={{
43
- width: 30,
44
- height: 55,
45
- justifyContent: 'center',
46
- alignItems: 'center',
47
- }}
48
- >
49
- <IconBack width={18} height={18} fill={'black'} />
50
- </MButton>
51
-
52
- <MText
53
- style={{
54
- marginRight: 30,
55
- fontSize: 16,
56
- paddingHorizontal: 4,
57
- color: color.headerColor,
58
- fontWeight: 'bold',
59
- textAlign: 'center',
60
- flex: 1,
61
- }}
62
- >
63
- {'Điều khoản'}
64
- </MText>
65
- </View>
66
38
  <View style={{ backgroundColor: color.border }} />
67
- {/* <WebView
68
- source={{ uri: 'https://tima.vn/dieu-khoan.html' }}
69
- style={{ flex: 1 }}
70
- /> */}
39
+
71
40
  <Pdf
72
41
  source={{
73
42
  uri: 'https://cdn.tima.vn/file-pdf/20240509_DIEU_KHOAN_VA_DIEU_KIEN_TIMA.pdf',
@@ -25,6 +25,7 @@ import {
25
25
  RESULTS,
26
26
  } from 'react-native-permissions';
27
27
  import Loading from '../../components/Loading';
28
+ import MHeader from '../../components/MHeader';
28
29
 
29
30
  export const Video = observer(function Video(props: any) {
30
31
  const navigation = useNavigation();
@@ -106,104 +107,102 @@ export const Video = observer(function Video(props: any) {
106
107
  };
107
108
 
108
109
  return (
109
- <SafeAreaView style={{ flex: 1, backgroundColor: 'white' }}>
110
- <View style={{ height: 50, paddingHorizontal: 10 }}>
111
- <MButton
112
- style={{ height: 50, width: 50, justifyContent: 'center' }}
113
- onPress={() => navigation.goBack()}
114
- >
115
- <IconBack fill={'black'} width={16} height={16} />
116
- </MButton>
117
- </View>
118
- <View style={{ flex: 1, justifyContent: 'center' }}>
119
- {count === 0 && (
110
+ <View
111
+ style={{
112
+ flex: 1,
113
+ }}
114
+ >
115
+ <MHeader title="" onBack={() => navigation.goBack()} />
116
+ <SafeAreaView style={{ flex: 1, backgroundColor: 'white' }}>
117
+ <View style={{ flex: 1, justifyContent: 'center' }}>
118
+ {count === 0 && (
119
+ <View
120
+ style={{
121
+ position: 'absolute',
122
+ bottom: 100,
123
+ right: 0,
124
+ left: 0,
125
+ zIndex: 1,
126
+ paddingHorizontal: 10,
127
+ justifyContent: 'center',
128
+ backgroundColor: 'black',
129
+ paddingVertical: 10,
130
+ }}
131
+ >
132
+ <MText
133
+ style={{
134
+ color: 'white',
135
+ fontSize: 16,
136
+ }}
137
+ >
138
+ {content}
139
+ </MText>
140
+ </View>
141
+ )}
142
+ <RNCamera
143
+ ref={camera}
144
+ style={styles.preview}
145
+ type="front"
146
+ permissionDialogTitle={'Permission to use camera'}
147
+ permissionDialogMessage={
148
+ 'We need your permission to use your camera phone'
149
+ }
150
+ androidCameraPermissionOptions={{
151
+ title: 'Permission to use camera',
152
+ message: 'We need your permission to use your camera',
153
+ buttonPositive: 'Ok',
154
+ buttonNegative: 'Cancel',
155
+ }}
156
+ androidRecordAudioPermissionOptions={{
157
+ title: 'Permission to use audio recording',
158
+ message: 'We need your permission to use your audio',
159
+ buttonPositive: 'Ok',
160
+ buttonNegative: 'Cancel',
161
+ }}
162
+ />
120
163
  <View
121
164
  style={{
165
+ backgroundColor: '#00000080',
166
+ justifyContent: 'center',
122
167
  position: 'absolute',
123
- bottom: 100,
124
- right: 0,
168
+ bottom: 0,
125
169
  left: 0,
126
- zIndex: 1,
127
- paddingHorizontal: 10,
128
- justifyContent: 'center',
129
- backgroundColor: 'black',
130
- paddingVertical: 10,
170
+ right: 0,
131
171
  }}
132
172
  >
133
- <MText
134
- style={{
135
- color: 'white',
136
- fontSize: 16,
137
- }}
138
- >
139
- {content}
140
- </MText>
173
+ {isRecording ? (
174
+ <TouchableOpacity
175
+ style={{
176
+ justifyContent: 'center',
177
+ alignItems: 'center',
178
+ marginBottom: 20,
179
+ }}
180
+ onPress={() => {
181
+ stopRecording();
182
+ }}
183
+ >
184
+ <IconPause fill={'white'} width={60} height={60} />
185
+ </TouchableOpacity>
186
+ ) : (
187
+ <TouchableOpacity
188
+ style={{
189
+ justifyContent: 'center',
190
+ alignItems: 'center',
191
+ marginBottom: 20,
192
+ }}
193
+ disabled={videoStore.isLoading}
194
+ onPress={() => {
195
+ startVideo();
196
+ }}
197
+ >
198
+ <IconPlay fill={'white'} width={60} height={60} />
199
+ </TouchableOpacity>
200
+ )}
141
201
  </View>
142
- )}
143
-
144
- <RNCamera
145
- ref={camera}
146
- style={styles.preview}
147
- type="front"
148
- permissionDialogTitle={'Permission to use camera'}
149
- permissionDialogMessage={
150
- 'We need your permission to use your camera phone'
151
- }
152
- androidCameraPermissionOptions={{
153
- title: 'Permission to use camera',
154
- message: 'We need your permission to use your camera',
155
- buttonPositive: 'Ok',
156
- buttonNegative: 'Cancel',
157
- }}
158
- androidRecordAudioPermissionOptions={{
159
- title: 'Permission to use audio recording',
160
- message: 'We need your permission to use your audio',
161
- buttonPositive: 'Ok',
162
- buttonNegative: 'Cancel',
163
- }}
164
- />
165
- <View
166
- style={{
167
- backgroundColor: '#00000080',
168
- justifyContent: 'center',
169
- position: 'absolute',
170
- bottom: 0,
171
- left: 0,
172
- right: 0,
173
- }}
174
- >
175
- {isRecording ? (
176
- <TouchableOpacity
177
- style={{
178
- justifyContent: 'center',
179
- alignItems: 'center',
180
- marginBottom: 20,
181
- }}
182
- onPress={() => {
183
- stopRecording();
184
- }}
185
- >
186
- <IconPause fill={'white'} width={60} height={60} />
187
- </TouchableOpacity>
188
- ) : (
189
- <TouchableOpacity
190
- style={{
191
- justifyContent: 'center',
192
- alignItems: 'center',
193
- marginBottom: 20,
194
- }}
195
- disabled={videoStore.isLoading}
196
- onPress={() => {
197
- startVideo();
198
- }}
199
- >
200
- <IconPlay fill={'white'} width={60} height={60} />
201
- </TouchableOpacity>
202
- )}
203
202
  </View>
204
- </View>
205
- <Loading isLoading={isLoading} />
206
- </SafeAreaView>
203
+ <Loading isLoading={isLoading} />
204
+ </SafeAreaView>
205
+ </View>
207
206
  );
208
207
  });
209
208
 
@@ -1,5 +1,5 @@
1
- // const API_URL = 'https://apiapplos.tima.vn/'
2
- const API_URL = 'https://apidevlos.tima.vn/'
1
+ const API_URL = 'https://apiapplos.tima.vn/'
2
+ // const API_URL = 'https://apidevlos.tima.vn/'
3
3
  export interface ApiConfig {
4
4
  url: string
5
5
  timeout: number