assentify-sdk-react-native 0.0.1 → 0.0.2

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 (298) hide show
  1. package/README.md +4 -0
  2. package/lib/commonjs/AssentifyProvider.js +49 -2
  3. package/lib/commonjs/AssentifyProvider.js.map +1 -1
  4. package/lib/commonjs/AssentifyWrapper.js +13 -30
  5. package/lib/commonjs/AssentifyWrapper.js.map +1 -1
  6. package/lib/commonjs/components/BackButton.js +33 -0
  7. package/lib/commonjs/components/BackButton.js.map +1 -0
  8. package/lib/commonjs/components/BaseButton.js +41 -0
  9. package/lib/commonjs/components/BaseButton.js.map +1 -0
  10. package/lib/commonjs/components/BaseIcon.js +83 -0
  11. package/lib/commonjs/components/BaseIcon.js.map +1 -0
  12. package/lib/commonjs/components/CloseButton.js +33 -0
  13. package/lib/commonjs/components/CloseButton.js.map +1 -0
  14. package/lib/commonjs/components/CustomHeader.js +54 -0
  15. package/lib/commonjs/components/CustomHeader.js.map +1 -0
  16. package/lib/commonjs/components/Each.js +16 -0
  17. package/lib/commonjs/components/Each.js.map +1 -0
  18. package/lib/commonjs/components/Page.js +45 -0
  19. package/lib/commonjs/components/Page.js.map +1 -0
  20. package/lib/commonjs/components/icons/arrow-left.js +28 -0
  21. package/lib/commonjs/components/icons/arrow-left.js.map +1 -0
  22. package/lib/commonjs/components/icons/big-warning.js +34 -0
  23. package/lib/commonjs/components/icons/big-warning.js.map +1 -0
  24. package/lib/commonjs/components/icons/check-success.js +28 -0
  25. package/lib/commonjs/components/icons/check-success.js.map +1 -0
  26. package/lib/commonjs/components/icons/chevron-down.js +28 -0
  27. package/lib/commonjs/components/icons/chevron-down.js.map +1 -0
  28. package/lib/commonjs/components/icons/chevron-left.js +28 -0
  29. package/lib/commonjs/components/icons/chevron-left.js.map +1 -0
  30. package/lib/commonjs/components/icons/chevron-right.js +28 -0
  31. package/lib/commonjs/components/icons/chevron-right.js.map +1 -0
  32. package/lib/commonjs/components/icons/chevron-up.js +27 -0
  33. package/lib/commonjs/components/icons/chevron-up.js.map +1 -0
  34. package/lib/commonjs/components/icons/close.js +28 -0
  35. package/lib/commonjs/components/icons/close.js.map +1 -0
  36. package/lib/commonjs/components/type.js +2 -0
  37. package/lib/commonjs/components/type.js.map +1 -0
  38. package/lib/commonjs/helpers/NavigationService.js +80 -0
  39. package/lib/commonjs/helpers/NavigationService.js.map +1 -0
  40. package/lib/commonjs/helpers/constants.js +16 -0
  41. package/lib/commonjs/helpers/constants.js.map +1 -0
  42. package/lib/commonjs/helpers/useBackHandler.js +16 -0
  43. package/lib/commonjs/helpers/useBackHandler.js.map +1 -0
  44. package/lib/commonjs/navigator/index.js +30 -0
  45. package/lib/commonjs/navigator/index.js.map +1 -0
  46. package/lib/commonjs/screens/SelectDocument.js +248 -0
  47. package/lib/commonjs/screens/SelectDocument.js.map +1 -0
  48. package/lib/commonjs/themes/index.js +22 -0
  49. package/lib/commonjs/themes/index.js.map +1 -0
  50. package/lib/commonjs/themes/styling.js +64 -0
  51. package/lib/commonjs/themes/styling.js.map +1 -0
  52. package/lib/commonjs/types.js.map +1 -1
  53. package/lib/commonjs/useGlobalStore.js +52 -0
  54. package/lib/commonjs/useGlobalStore.js.map +1 -0
  55. package/lib/module/AssentifyProvider.js +50 -2
  56. package/lib/module/AssentifyProvider.js.map +1 -1
  57. package/lib/module/AssentifyWrapper.js +13 -31
  58. package/lib/module/AssentifyWrapper.js.map +1 -1
  59. package/lib/module/components/BackButton.js +26 -0
  60. package/lib/module/components/BackButton.js.map +1 -0
  61. package/lib/module/components/BaseButton.js +34 -0
  62. package/lib/module/components/BaseButton.js.map +1 -0
  63. package/lib/module/components/BaseIcon.js +76 -0
  64. package/lib/module/components/BaseIcon.js.map +1 -0
  65. package/lib/module/components/CloseButton.js +26 -0
  66. package/lib/module/components/CloseButton.js.map +1 -0
  67. package/lib/module/components/CustomHeader.js +47 -0
  68. package/lib/module/components/CustomHeader.js.map +1 -0
  69. package/lib/module/components/Each.js +9 -0
  70. package/lib/module/components/Each.js.map +1 -0
  71. package/lib/module/components/Page.js +38 -0
  72. package/lib/module/components/Page.js.map +1 -0
  73. package/lib/module/components/icons/arrow-left.js +19 -0
  74. package/lib/module/components/icons/arrow-left.js.map +1 -0
  75. package/lib/module/components/icons/big-warning.js +25 -0
  76. package/lib/module/components/icons/big-warning.js.map +1 -0
  77. package/lib/module/components/icons/check-success.js +19 -0
  78. package/lib/module/components/icons/check-success.js.map +1 -0
  79. package/lib/module/components/icons/chevron-down.js +19 -0
  80. package/lib/module/components/icons/chevron-down.js.map +1 -0
  81. package/lib/module/components/icons/chevron-left.js +19 -0
  82. package/lib/module/components/icons/chevron-left.js.map +1 -0
  83. package/lib/module/components/icons/chevron-right.js +19 -0
  84. package/lib/module/components/icons/chevron-right.js.map +1 -0
  85. package/lib/module/components/icons/chevron-up.js +19 -0
  86. package/lib/module/components/icons/chevron-up.js.map +1 -0
  87. package/lib/module/components/icons/close.js +19 -0
  88. package/lib/module/components/icons/close.js.map +1 -0
  89. package/lib/module/components/type.js +2 -0
  90. package/lib/module/components/type.js.map +1 -0
  91. package/lib/module/helpers/NavigationService.js +75 -0
  92. package/lib/module/helpers/NavigationService.js.map +1 -0
  93. package/lib/module/helpers/constants.js +10 -0
  94. package/lib/module/helpers/constants.js.map +1 -0
  95. package/lib/module/helpers/useBackHandler.js +10 -0
  96. package/lib/module/helpers/useBackHandler.js.map +1 -0
  97. package/lib/module/navigator/index.js +23 -0
  98. package/lib/module/navigator/index.js.map +1 -0
  99. package/lib/module/screens/SelectDocument.js +240 -0
  100. package/lib/module/screens/SelectDocument.js.map +1 -0
  101. package/lib/module/themes/index.js +16 -0
  102. package/lib/module/themes/index.js.map +1 -0
  103. package/lib/module/themes/styling.js +52 -0
  104. package/lib/module/themes/styling.js.map +1 -0
  105. package/lib/module/types.js.map +1 -1
  106. package/lib/module/useGlobalStore.js +46 -0
  107. package/lib/module/useGlobalStore.js.map +1 -0
  108. package/lib/typescript/example/src/Home.d.ts.map +1 -1
  109. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +2 -0
  110. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
  111. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +1 -0
  112. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
  113. package/lib/typescript/lib/commonjs/components/BackButton.d.ts +6 -0
  114. package/lib/typescript/lib/commonjs/components/BackButton.d.ts.map +1 -0
  115. package/lib/typescript/lib/commonjs/components/BaseButton.d.ts +7 -0
  116. package/lib/typescript/lib/commonjs/components/BaseButton.d.ts.map +1 -0
  117. package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts +29 -0
  118. package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts.map +1 -0
  119. package/lib/typescript/lib/commonjs/components/CloseButton.d.ts +6 -0
  120. package/lib/typescript/lib/commonjs/components/CloseButton.d.ts.map +1 -0
  121. package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts +9 -0
  122. package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts.map +1 -0
  123. package/lib/typescript/lib/commonjs/components/Each.d.ts +7 -0
  124. package/lib/typescript/lib/commonjs/components/Each.d.ts.map +1 -0
  125. package/lib/typescript/lib/commonjs/components/Page.d.ts +14 -0
  126. package/lib/typescript/lib/commonjs/components/Page.d.ts.map +1 -0
  127. package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts +4 -0
  128. package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts.map +1 -0
  129. package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts +4 -0
  130. package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts.map +1 -0
  131. package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts +4 -0
  132. package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts.map +1 -0
  133. package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts +4 -0
  134. package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts.map +1 -0
  135. package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts +4 -0
  136. package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts.map +1 -0
  137. package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts +4 -0
  138. package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts.map +1 -0
  139. package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts +4 -0
  140. package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts.map +1 -0
  141. package/lib/typescript/lib/commonjs/components/icons/close.d.ts +4 -0
  142. package/lib/typescript/lib/commonjs/components/icons/close.d.ts.map +1 -0
  143. package/lib/typescript/lib/commonjs/components/type.d.ts +1 -0
  144. package/lib/typescript/lib/commonjs/components/type.d.ts.map +1 -0
  145. package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts +29 -0
  146. package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts.map +1 -0
  147. package/lib/typescript/lib/commonjs/helpers/constants.d.ts +11 -0
  148. package/lib/typescript/lib/commonjs/helpers/constants.d.ts.map +1 -0
  149. package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts +3 -0
  150. package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts.map +1 -0
  151. package/lib/typescript/lib/commonjs/navigator/index.d.ts +4 -0
  152. package/lib/typescript/lib/commonjs/navigator/index.d.ts.map +1 -0
  153. package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts +4 -0
  154. package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts.map +1 -0
  155. package/lib/typescript/lib/commonjs/themes/index.d.ts +17 -0
  156. package/lib/typescript/lib/commonjs/themes/index.d.ts.map +1 -0
  157. package/lib/typescript/lib/commonjs/themes/styling.d.ts +8 -0
  158. package/lib/typescript/lib/commonjs/themes/styling.d.ts.map +1 -0
  159. package/lib/typescript/lib/commonjs/useGlobalStore.d.ts +5 -0
  160. package/lib/typescript/lib/commonjs/useGlobalStore.d.ts.map +1 -0
  161. package/lib/typescript/lib/module/AssentifyProvider.d.ts +3 -1
  162. package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
  163. package/lib/typescript/lib/module/AssentifyWrapper.d.ts +1 -0
  164. package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
  165. package/lib/typescript/lib/module/components/BackButton.d.ts +7 -0
  166. package/lib/typescript/lib/module/components/BackButton.d.ts.map +1 -0
  167. package/lib/typescript/lib/module/components/BaseButton.d.ts +8 -0
  168. package/lib/typescript/lib/module/components/BaseButton.d.ts.map +1 -0
  169. package/lib/typescript/lib/module/components/BaseIcon.d.ts +29 -0
  170. package/lib/typescript/lib/module/components/BaseIcon.d.ts.map +1 -0
  171. package/lib/typescript/lib/module/components/CloseButton.d.ts +7 -0
  172. package/lib/typescript/lib/module/components/CloseButton.d.ts.map +1 -0
  173. package/lib/typescript/lib/module/components/CustomHeader.d.ts +10 -0
  174. package/lib/typescript/lib/module/components/CustomHeader.d.ts.map +1 -0
  175. package/lib/typescript/lib/module/components/Each.d.ts +7 -0
  176. package/lib/typescript/lib/module/components/Each.d.ts.map +1 -0
  177. package/lib/typescript/lib/module/components/Page.d.ts +15 -0
  178. package/lib/typescript/lib/module/components/Page.d.ts.map +1 -0
  179. package/lib/typescript/lib/module/components/icons/arrow-left.d.ts +5 -0
  180. package/lib/typescript/lib/module/components/icons/arrow-left.d.ts.map +1 -0
  181. package/lib/typescript/lib/module/components/icons/big-warning.d.ts +5 -0
  182. package/lib/typescript/lib/module/components/icons/big-warning.d.ts.map +1 -0
  183. package/lib/typescript/lib/module/components/icons/check-success.d.ts +5 -0
  184. package/lib/typescript/lib/module/components/icons/check-success.d.ts.map +1 -0
  185. package/lib/typescript/lib/module/components/icons/chevron-down.d.ts +5 -0
  186. package/lib/typescript/lib/module/components/icons/chevron-down.d.ts.map +1 -0
  187. package/lib/typescript/lib/module/components/icons/chevron-left.d.ts +5 -0
  188. package/lib/typescript/lib/module/components/icons/chevron-left.d.ts.map +1 -0
  189. package/lib/typescript/lib/module/components/icons/chevron-right.d.ts +5 -0
  190. package/lib/typescript/lib/module/components/icons/chevron-right.d.ts.map +1 -0
  191. package/lib/typescript/lib/module/components/icons/chevron-up.d.ts +5 -0
  192. package/lib/typescript/lib/module/components/icons/chevron-up.d.ts.map +1 -0
  193. package/lib/typescript/lib/module/components/icons/close.d.ts +5 -0
  194. package/lib/typescript/lib/module/components/icons/close.d.ts.map +1 -0
  195. package/lib/typescript/lib/module/components/type.d.ts +1 -0
  196. package/lib/typescript/lib/module/components/type.d.ts.map +1 -0
  197. package/lib/typescript/lib/module/helpers/NavigationService.d.ts +28 -0
  198. package/lib/typescript/lib/module/helpers/NavigationService.d.ts.map +1 -0
  199. package/lib/typescript/lib/module/helpers/constants.d.ts +10 -0
  200. package/lib/typescript/lib/module/helpers/constants.d.ts.map +1 -0
  201. package/lib/typescript/lib/module/helpers/useBackHandler.d.ts +2 -0
  202. package/lib/typescript/lib/module/helpers/useBackHandler.d.ts.map +1 -0
  203. package/lib/typescript/lib/module/index.d.ts +1 -0
  204. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  205. package/lib/typescript/lib/module/navigator/index.d.ts +4 -0
  206. package/lib/typescript/lib/module/navigator/index.d.ts.map +1 -0
  207. package/lib/typescript/lib/module/screens/SelectDocument.d.ts +4 -0
  208. package/lib/typescript/lib/module/screens/SelectDocument.d.ts.map +1 -0
  209. package/lib/typescript/lib/module/themes/index.d.ts +16 -0
  210. package/lib/typescript/lib/module/themes/index.d.ts.map +1 -0
  211. package/lib/typescript/lib/module/themes/styling.d.ts +7 -0
  212. package/lib/typescript/lib/module/themes/styling.d.ts.map +1 -0
  213. package/lib/typescript/lib/module/useGlobalStore.d.ts +3 -0
  214. package/lib/typescript/lib/module/useGlobalStore.d.ts.map +1 -0
  215. package/lib/typescript/src/AssentifyProvider.d.ts +3 -0
  216. package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
  217. package/lib/typescript/src/AssentifyWrapper.d.ts +1 -0
  218. package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
  219. package/lib/typescript/src/components/BackButton.d.ts +7 -0
  220. package/lib/typescript/src/components/BackButton.d.ts.map +1 -0
  221. package/lib/typescript/src/components/BaseButton.d.ts +8 -0
  222. package/lib/typescript/src/components/BaseButton.d.ts.map +1 -0
  223. package/lib/typescript/src/components/BaseIcon.d.ts +45 -0
  224. package/lib/typescript/src/components/BaseIcon.d.ts.map +1 -0
  225. package/lib/typescript/src/components/CloseButton.d.ts +7 -0
  226. package/lib/typescript/src/components/CloseButton.d.ts.map +1 -0
  227. package/lib/typescript/src/components/CustomHeader.d.ts +12 -0
  228. package/lib/typescript/src/components/CustomHeader.d.ts.map +1 -0
  229. package/lib/typescript/src/components/Each.d.ts +8 -0
  230. package/lib/typescript/src/components/Each.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Page.d.ts +17 -0
  232. package/lib/typescript/src/components/Page.d.ts.map +1 -0
  233. package/lib/typescript/src/components/icons/arrow-left.d.ts +4 -0
  234. package/lib/typescript/src/components/icons/arrow-left.d.ts.map +1 -0
  235. package/lib/typescript/src/components/icons/big-warning.d.ts +4 -0
  236. package/lib/typescript/src/components/icons/big-warning.d.ts.map +1 -0
  237. package/lib/typescript/src/components/icons/check-success.d.ts +4 -0
  238. package/lib/typescript/src/components/icons/check-success.d.ts.map +1 -0
  239. package/lib/typescript/src/components/icons/chevron-down.d.ts +4 -0
  240. package/lib/typescript/src/components/icons/chevron-down.d.ts.map +1 -0
  241. package/lib/typescript/src/components/icons/chevron-left.d.ts +4 -0
  242. package/lib/typescript/src/components/icons/chevron-left.d.ts.map +1 -0
  243. package/lib/typescript/src/components/icons/chevron-right.d.ts +4 -0
  244. package/lib/typescript/src/components/icons/chevron-right.d.ts.map +1 -0
  245. package/lib/typescript/src/components/icons/chevron-up.d.ts +4 -0
  246. package/lib/typescript/src/components/icons/chevron-up.d.ts.map +1 -0
  247. package/lib/typescript/src/components/icons/close.d.ts +4 -0
  248. package/lib/typescript/src/components/icons/close.d.ts.map +1 -0
  249. package/lib/typescript/src/components/type.d.ts +3 -0
  250. package/lib/typescript/src/components/type.d.ts.map +1 -0
  251. package/lib/typescript/src/helpers/NavigationService.d.ts +29 -0
  252. package/lib/typescript/src/helpers/NavigationService.d.ts.map +1 -0
  253. package/lib/typescript/src/helpers/constants.d.ts +10 -0
  254. package/lib/typescript/src/helpers/constants.d.ts.map +1 -0
  255. package/lib/typescript/src/helpers/useBackHandler.d.ts +2 -0
  256. package/lib/typescript/src/helpers/useBackHandler.d.ts.map +1 -0
  257. package/lib/typescript/src/index.d.ts +1 -0
  258. package/lib/typescript/src/index.d.ts.map +1 -1
  259. package/lib/typescript/src/navigator/index.d.ts +4 -0
  260. package/lib/typescript/src/navigator/index.d.ts.map +1 -0
  261. package/lib/typescript/src/screens/SelectDocument.d.ts +5 -0
  262. package/lib/typescript/src/screens/SelectDocument.d.ts.map +1 -0
  263. package/lib/typescript/src/themes/index.d.ts +16 -0
  264. package/lib/typescript/src/themes/index.d.ts.map +1 -0
  265. package/lib/typescript/src/themes/styling.d.ts +7 -0
  266. package/lib/typescript/src/themes/styling.d.ts.map +1 -0
  267. package/lib/typescript/src/types.d.ts +2 -0
  268. package/lib/typescript/src/types.d.ts.map +1 -1
  269. package/lib/typescript/src/useGlobalStore.d.ts +25 -0
  270. package/lib/typescript/src/useGlobalStore.d.ts.map +1 -0
  271. package/package.json +1 -2
  272. package/src/AssentifyProvider.tsx +59 -5
  273. package/src/AssentifyWrapper.ts +29 -71
  274. package/src/components/BackButton.tsx +28 -0
  275. package/src/components/BaseButton.tsx +44 -0
  276. package/src/components/BaseIcon.tsx +96 -0
  277. package/src/components/CloseButton.tsx +28 -0
  278. package/src/components/CustomHeader.tsx +58 -0
  279. package/src/components/Each.tsx +12 -0
  280. package/src/components/Page.tsx +64 -0
  281. package/src/components/icons/arrow-left.tsx +22 -0
  282. package/src/components/icons/big-warning.tsx +29 -0
  283. package/src/components/icons/check-success.tsx +22 -0
  284. package/src/components/icons/chevron-down.tsx +22 -0
  285. package/src/components/icons/chevron-left.tsx +22 -0
  286. package/src/components/icons/chevron-right.tsx +22 -0
  287. package/src/components/icons/chevron-up.tsx +22 -0
  288. package/src/components/icons/close.tsx +22 -0
  289. package/src/components/type.ts +11 -0
  290. package/src/helpers/NavigationService.ts +89 -0
  291. package/src/helpers/constants.ts +13 -0
  292. package/src/helpers/useBackHandler.ts +14 -0
  293. package/src/navigator/index.tsx +34 -0
  294. package/src/screens/SelectDocument.tsx +250 -0
  295. package/src/themes/index.ts +16 -0
  296. package/src/themes/styling.ts +53 -0
  297. package/src/types.ts +3 -0
  298. package/src/useGlobalStore.ts +65 -0
@@ -0,0 +1,75 @@
1
+ import { StackActions, CommonActions } from '@react-navigation/native';
2
+ let _navigator;
3
+ let currentRoute = 'Profile';
4
+ function setTopLevelNavigator(navigatorRef) {
5
+ _navigator = navigatorRef;
6
+ }
7
+ function navigate(routeName, params) {
8
+ _navigator.navigate(routeName, params);
9
+ }
10
+ function replace(routeName, params) {
11
+ _navigator.dispatch(StackActions.replace(routeName, params));
12
+ }
13
+ function push(routeName, params) {
14
+ _navigator.dispatch(StackActions.push(routeName, params));
15
+ }
16
+ function pop(number = 1) {
17
+ _navigator.dispatch(StackActions.pop(number));
18
+ }
19
+ function popToTop() {
20
+ _navigator.dispatch(StackActions.popToTop());
21
+ }
22
+ function goBack() {
23
+ _navigator.goBack();
24
+ }
25
+ function canGoBack() {
26
+ return _navigator.canGoBack();
27
+ }
28
+ function getNavigator() {
29
+ return _navigator;
30
+ }
31
+ function reset(routeName) {
32
+ // _navigator.dispatch(
33
+ // StackActions.reset({
34
+ // index: 0,
35
+ // actions: [NavigationActions.navigate({ routeName })],
36
+ // }),
37
+ // );
38
+
39
+ const resetAction = CommonActions.reset({
40
+ index: 0,
41
+ routes: [{
42
+ name: routeName
43
+ }]
44
+ });
45
+ _navigator.dispatch(resetAction);
46
+ }
47
+ function setCurrentRoute(route) {
48
+ currentRoute = route;
49
+ }
50
+ function getCurrentRoute() {
51
+ return currentRoute;
52
+ // let route = _navigator.state.nav;
53
+ // while (route.routes) {
54
+ // route = route.routes[route.index];
55
+ // }
56
+ // return route.routeName;
57
+ }
58
+
59
+ // add other navigation functions that you need and export them
60
+
61
+ export default {
62
+ replace,
63
+ push,
64
+ pop,
65
+ setTopLevelNavigator,
66
+ setCurrentRoute,
67
+ getCurrentRoute,
68
+ getNavigator,
69
+ navigate,
70
+ reset,
71
+ popToTop,
72
+ goBack,
73
+ canGoBack
74
+ };
75
+ //# sourceMappingURL=NavigationService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StackActions","CommonActions","_navigator","currentRoute","setTopLevelNavigator","navigatorRef","navigate","routeName","params","replace","dispatch","push","pop","number","popToTop","goBack","canGoBack","getNavigator","reset","resetAction","index","routes","name","setCurrentRoute","route","getCurrentRoute"],"sourceRoot":"..\\..\\..\\src","sources":["helpers/NavigationService.ts"],"mappings":"AAAA,SACEA,YAAY,EACZC,aAAa,QAER,0BAA0B;AAEjC,IAAIC,UAAuC;AAC3C,IAAIC,YAAY,GAAG,SAAS;AAE5B,SAASC,oBAAoBA,CAACC,YAA0C,EAAE;EACxEH,UAAU,GAAGG,YAAa;AAC5B;AAEA,SAASC,QAAQA,CAACC,SAAiB,EAAEC,MAAY,EAAE;EACjDN,UAAU,CAACI,QAAQ,CAACC,SAAS,EAAEC,MAAM,CAAC;AACxC;AAEA,SAASC,OAAOA,CAACF,SAAiB,EAAEC,MAAY,EAAE;EAChDN,UAAU,CAACQ,QAAQ,CAACV,YAAY,CAACS,OAAO,CAACF,SAAS,EAAEC,MAAM,CAAC,CAAC;AAC9D;AAEA,SAASG,IAAIA,CAACJ,SAAiB,EAAEC,MAAY,EAAE;EAC7CN,UAAU,CAACQ,QAAQ,CAACV,YAAY,CAACW,IAAI,CAACJ,SAAS,EAAEC,MAAM,CAAC,CAAC;AAC3D;AAEA,SAASI,GAAGA,CAACC,MAAM,GAAG,CAAC,EAAE;EACvBX,UAAU,CAACQ,QAAQ,CAACV,YAAY,CAACY,GAAG,CAACC,MAAM,CAAC,CAAC;AAC/C;AAEA,SAASC,QAAQA,CAAA,EAAG;EAClBZ,UAAU,CAACQ,QAAQ,CAACV,YAAY,CAACc,QAAQ,CAAC,CAAC,CAAC;AAC9C;AAEA,SAASC,MAAMA,CAAA,EAAG;EAChBb,UAAU,CAACa,MAAM,CAAC,CAAC;AACrB;AAEA,SAASC,SAASA,CAAA,EAAG;EACnB,OAAOd,UAAU,CAACc,SAAS,CAAC,CAAC;AAC/B;AAEA,SAASC,YAAYA,CAAA,EAAG;EACtB,OAAOf,UAAU;AACnB;AAEA,SAASgB,KAAKA,CAACX,SAAiB,EAAE;EAChC;EACA;EACA;EACA;EACA;EACA;;EAEA,MAAMY,WAAW,GAAGlB,aAAa,CAACiB,KAAK,CAAC;IACtCE,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;MAAEC,IAAI,EAAEf;IAAU,CAAC;EAC9B,CAAC,CAAC;EACFL,UAAU,CAACQ,QAAQ,CAACS,WAAW,CAAC;AAClC;AAEA,SAASI,eAAeA,CAACC,KAAa,EAAE;EACtCrB,YAAY,GAAGqB,KAAK;AACtB;AAEA,SAASC,eAAeA,CAAA,EAAG;EACzB,OAAOtB,YAAY;EACnB;EACA;EACA;EACA;EACA;AACF;;AAEA;;AAEA,eAAe;EACbM,OAAO;EACPE,IAAI;EACJC,GAAG;EACHR,oBAAoB;EACpBmB,eAAe;EACfE,eAAe;EACfR,YAAY;EACZX,QAAQ;EACRY,KAAK;EACLJ,QAAQ;EACRC,MAAM;EACNC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ export const DOC_TYPE = {
2
+ PASSPORT: 'passport',
3
+ CIVIL_ID: 'civil_id',
4
+ OTHER: 'other'
5
+ };
6
+ export const PAGES = {
7
+ SELECT_DOCUMENT: 'Select Document',
8
+ Empty: 'Assentify_Empty'
9
+ };
10
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DOC_TYPE","PASSPORT","CIVIL_ID","OTHER","PAGES","SELECT_DOCUMENT","Empty"],"sourceRoot":"..\\..\\..\\src","sources":["helpers/constants.ts"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,GAAG;EACtBC,QAAQ,EAAE,UAAU;EACpBC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE;AACT,CAAC;AAED,OAAO,MAAMC,KAAK,GAAG;EACnBC,eAAe,EAAE,iBAAiB;EAClCC,KAAK,EAAE;AACT,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ import { useFocusEffect } from '@react-navigation/native';
2
+ import { useCallback } from 'react';
3
+ import { BackHandler } from 'react-native';
4
+ export function useBackHandler(handler) {
5
+ useFocusEffect(useCallback(() => {
6
+ BackHandler.addEventListener('hardwareBackPress', handler);
7
+ return () => BackHandler.removeEventListener('hardwareBackPress', handler);
8
+ }, [handler]));
9
+ }
10
+ //# sourceMappingURL=useBackHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useFocusEffect","useCallback","BackHandler","useBackHandler","handler","addEventListener","removeEventListener"],"sourceRoot":"..\\..\\..\\src","sources":["helpers/useBackHandler.ts"],"mappings":"AAAA,SAASA,cAAc,QAAQ,0BAA0B;AACzD,SAASC,WAAW,QAAQ,OAAO;AACnC,SAASC,WAAW,QAAQ,cAAc;AAE1C,OAAO,SAASC,cAAcA,CAACC,OAAsB,EAAE;EACrDJ,cAAc,CACZC,WAAW,CAAC,MAAM;IAChBC,WAAW,CAACG,gBAAgB,CAAC,mBAAmB,EAAED,OAAO,CAAC;IAE1D,OAAO,MACLF,WAAW,CAACI,mBAAmB,CAAC,mBAAmB,EAAEF,OAAO,CAAC;EACjE,CAAC,EAAE,CAACA,OAAO,CAAC,CACd,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { NavigationContainer } from '@react-navigation/native';
3
+ import { createNativeStackNavigator } from '@react-navigation/native-stack';
4
+ import NavigationService from '../helpers/NavigationService';
5
+ import { PAGES } from '../helpers/constants';
6
+ import SelectDocument from '../screens/SelectDocument';
7
+ const Stack = createNativeStackNavigator();
8
+ const EmptyScreen = () => null;
9
+ const AssentifyNavigator = () => {
10
+ const navigationRef = React.useRef(null);
11
+ return /*#__PURE__*/React.createElement(NavigationContainer, {
12
+ independent: true,
13
+ ref: navigationRef,
14
+ onReady: () => {
15
+ NavigationService.setTopLevelNavigator(navigationRef.current);
16
+ }
17
+ }, /*#__PURE__*/React.createElement(Stack.Navigator, null, /*#__PURE__*/React.createElement(Stack.Screen, {
18
+ name: PAGES.SELECT_DOCUMENT,
19
+ component: SelectDocument
20
+ })));
21
+ };
22
+ export default AssentifyNavigator;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","NavigationContainer","createNativeStackNavigator","NavigationService","PAGES","SelectDocument","Stack","EmptyScreen","AssentifyNavigator","navigationRef","useRef","createElement","independent","ref","onReady","setTopLevelNavigator","current","Navigator","Screen","name","SELECT_DOCUMENT","component"],"sourceRoot":"..\\..\\..\\src","sources":["navigator/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,mBAAmB,QAAqC,0BAA0B;AAC3F,SAASC,0BAA0B,QAAQ,gCAAgC;AAC3E,OAAOC,iBAAiB,MAAM,8BAA8B;AAC5D,SAASC,KAAK,QAAQ,sBAAsB;AAC5C,OAAOC,cAAc,MAAM,2BAA2B;AAEtD,MAAMC,KAAK,GAAGJ,0BAA0B,CAAC,CAAC;AAE1C,MAAMK,WAAW,GAAGA,CAAA,KAAM,IAAI;AAI9B,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EAC/B,MAAMC,aAAa,GAAGT,KAAK,CAACU,MAAM,CAAqC,IAAI,CAAC;EAE5E,oBACIV,KAAA,CAAAW,aAAA,CAACV,mBAAmB;IAClBW,WAAW;IACXC,GAAG,EAAEJ,aAAc;IACnBK,OAAO,EAAEA,CAAA,KAAM;MACbX,iBAAiB,CAACY,oBAAoB,CAACN,aAAa,CAACO,OAAQ,CAAC;IAChE;EAAE,gBAEFhB,KAAA,CAAAW,aAAA,CAACL,KAAK,CAACW,SAAS,qBACdjB,KAAA,CAAAW,aAAA,CAACL,KAAK,CAACY,MAAM;IAACC,IAAI,EAAEf,KAAK,CAACgB,eAAgB;IAACC,SAAS,EAAEhB;EAAe,CAAE,CACxD,CACE,CAAC;AAG5B,CAAC;AAED,eAAeG,kBAAkB","ignoreList":[]}
@@ -0,0 +1,240 @@
1
+ import { StyleSheet, Text, TouchableOpacity, View, FlatList } from 'react-native';
2
+ import React, { useEffect, useState } from 'react';
3
+ import { fontPixel, pixelSizeHorizontal, pixelSizeVertical } from '../themes/styling';
4
+ import { COLORS } from '../themes';
5
+ import BaseIcon from '../components/BaseIcon';
6
+ import Page from '../components/Page';
7
+ import CloseButton from '../components/CloseButton';
8
+ import useGlobalStore from '../useGlobalStore';
9
+ import Each from '../components/Each';
10
+ import { useBackHandler } from '../helpers/useBackHandler';
11
+ import { Image } from 'react-native';
12
+ import { kycDocumentDetailsSize, bottomSheetModalRef } from '../AssentifyProvider';
13
+ import AssentifyWrapper from '../AssentifyWrapper';
14
+ const SelectDocument = () => {
15
+ const {
16
+ supportedTemplates,
17
+ languageCode,
18
+ supportedCountries,
19
+ preferredCountry,
20
+ countryCode,
21
+ setCountryCode,
22
+ setSupportedTemplates,
23
+ setKYCDocumentDetails,
24
+ setDocType,
25
+ setIsVisible
26
+ } = useGlobalStore();
27
+ const [isOpenModal, setIsOpenModal] = useState(false);
28
+ const [selectedCountry, setSelectedCountry] = useState(null);
29
+ useBackHandler(() => {
30
+ onClose();
31
+ return false;
32
+ });
33
+ const onClose = () => {
34
+ var _bottomSheetModalRef$;
35
+ setCountryCode(null);
36
+ setDocType(null);
37
+ setIsVisible(false);
38
+ (_bottomSheetModalRef$ = bottomSheetModalRef.current) === null || _bottomSheetModalRef$ === void 0 || _bottomSheetModalRef$.dismiss();
39
+ };
40
+ const onScanId = kycDocumentDetailsList => {
41
+ kycDocumentDetailsSize.current = (kycDocumentDetailsList === null || kycDocumentDetailsList === void 0 ? void 0 : kycDocumentDetailsList.length) ?? 0;
42
+ AssentifyWrapper.startScanIDCard(kycDocumentDetailsList ?? [], languageCode, true);
43
+ };
44
+ const onScanPassport = () => {
45
+ console.log("ExampleEvents : ", languageCode);
46
+ AssentifyWrapper.startScanPassport(languageCode);
47
+ };
48
+ const onSelect = country => {
49
+ setCountryCode(country.sourceCountryCode);
50
+ setSelectedCountry(country);
51
+ setIsOpenModal(false);
52
+ };
53
+ const onOpen = () => {
54
+ setIsOpenModal(true);
55
+ };
56
+ useEffect(() => {
57
+ if (supportedCountries) {
58
+ var _supportedCountries$;
59
+ const codeToUse = (countryCode ?? '') || ((_supportedCountries$ = supportedCountries[0]) === null || _supportedCountries$ === void 0 ? void 0 : _supportedCountries$.sourceCountryCode);
60
+ const selected = supportedCountries.find(item => item.sourceCountryCode === codeToUse);
61
+ if (selected) {
62
+ const templates = selected.templates;
63
+ const kycDetails = [];
64
+ templates.forEach(item => {
65
+ if (item.kycDocumentDetails && item.kycDocumentDetails.length) {
66
+ kycDetails.push(item);
67
+ }
68
+ });
69
+ setSupportedTemplates(kycDetails);
70
+ setSelectedCountry(selected);
71
+ }
72
+ }
73
+ }, [countryCode, setSupportedTemplates, supportedCountries]);
74
+ return /*#__PURE__*/React.createElement(Page, {
75
+ scrollViewStyle: styles.ScrollView,
76
+ headerLeft: /*#__PURE__*/React.createElement(CloseButton, {
77
+ onPress: onClose
78
+ })
79
+ }, /*#__PURE__*/React.createElement(View, {
80
+ style: styles.container
81
+ }, /*#__PURE__*/React.createElement(Text, {
82
+ style: styles.CardTitle
83
+ }, "Select Document"), preferredCountry && /*#__PURE__*/React.createElement(TouchableOpacity, {
84
+ style: styles.DropdownSelect,
85
+ onPress: onOpen
86
+ }, selectedCountry ? /*#__PURE__*/React.createElement(View, {
87
+ style: styles.selectedCountryContainer
88
+ }, /*#__PURE__*/React.createElement(Image, {
89
+ source: {
90
+ uri: selectedCountry.flag
91
+ },
92
+ style: [styles.flag, {
93
+ width: 30,
94
+ height: undefined,
95
+ aspectRatio: 1
96
+ }]
97
+ }), /*#__PURE__*/React.createElement(Text, {
98
+ style: styles.DropdownTitle
99
+ }, selectedCountry.name)) : /*#__PURE__*/React.createElement(Text, {
100
+ style: styles.DropdownTitle
101
+ }, "Select Country"), /*#__PURE__*/React.createElement(BaseIcon, {
102
+ name: "chevron_down",
103
+ color: COLORS.secondary800
104
+ }))), isOpenModal && /*#__PURE__*/React.createElement(View, {
105
+ style: styles.dropdownModal
106
+ }, /*#__PURE__*/React.createElement(FlatList, {
107
+ data: supportedCountries,
108
+ renderItem: ({
109
+ item
110
+ }) => /*#__PURE__*/React.createElement(TouchableOpacity, {
111
+ style: styles.dropdownItem,
112
+ onPress: () => onSelect(item)
113
+ }, /*#__PURE__*/React.createElement(Image, {
114
+ source: {
115
+ uri: item.flag
116
+ },
117
+ style: styles.flag
118
+ }), /*#__PURE__*/React.createElement(Text, {
119
+ style: styles.DropdownTitle
120
+ }, item.name)),
121
+ keyExtractor: item => item.sourceCountryCode
122
+ })), /*#__PURE__*/React.createElement(View, {
123
+ style: styles.Card
124
+ }, /*#__PURE__*/React.createElement(Text, {
125
+ style: styles.CardTitle
126
+ }, "Select document type"), /*#__PURE__*/React.createElement(View, {
127
+ style: styles.CardContent
128
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
129
+ style: [styles.CardItem, supportedTemplates !== null && supportedTemplates !== void 0 && supportedTemplates.length ? styles.CardItemBordered : null],
130
+ onPress: () => onScanPassport()
131
+ }, /*#__PURE__*/React.createElement(Text, {
132
+ style: styles.CardItemText
133
+ }, "Passport"), /*#__PURE__*/React.createElement(BaseIcon, {
134
+ name: "chevron_right",
135
+ color: COLORS.secondary800
136
+ })), supportedTemplates && /*#__PURE__*/React.createElement(Each, {
137
+ of: supportedTemplates,
138
+ render: (item, index) => /*#__PURE__*/React.createElement(TouchableOpacity, {
139
+ key: `supported_template_${index}`,
140
+ style: [styles.CardItem, index !== supportedTemplates.length - 1 ? styles.CardItemBordered : null],
141
+ onPress: () => onScanId(item.kycDocumentDetails)
142
+ }, /*#__PURE__*/React.createElement(Text, {
143
+ style: styles.CardItemText
144
+ }, item === null || item === void 0 ? void 0 : item.kycDocumentType), /*#__PURE__*/React.createElement(BaseIcon, {
145
+ name: "chevron_right",
146
+ color: COLORS.secondary800
147
+ }))
148
+ }))));
149
+ };
150
+ export default SelectDocument;
151
+ const styles = StyleSheet.create({
152
+ ScrollView: {
153
+ flex: 1,
154
+ backgroundColor: '#fff',
155
+ paddingHorizontal: pixelSizeHorizontal(16)
156
+ },
157
+ container: {
158
+ marginTop: pixelSizeVertical(40)
159
+ },
160
+ Card: {
161
+ flex: 1,
162
+ marginVertical: pixelSizeVertical(16)
163
+ },
164
+ CardTitle: {
165
+ fontSize: fontPixel(14),
166
+ fontWeight: '600',
167
+ lineHeight: 20,
168
+ color: COLORS.secondary1200,
169
+ marginBottom: pixelSizeVertical(8)
170
+ },
171
+ CardContent: {
172
+ borderWidth: 1,
173
+ borderColor: COLORS.secondary300,
174
+ borderRadius: 16
175
+ },
176
+ CardItem: {
177
+ flexDirection: 'row',
178
+ alignItems: 'center',
179
+ justifyContent: 'space-between',
180
+ paddingLeft: pixelSizeHorizontal(24),
181
+ paddingRight: pixelSizeHorizontal(12),
182
+ paddingVertical: pixelSizeVertical(16)
183
+ },
184
+ CardItemBordered: {
185
+ borderBottomWidth: 1,
186
+ borderBottomColor: COLORS.secondary300
187
+ },
188
+ CardItemText: {
189
+ fontSize: fontPixel(14),
190
+ fontWeight: '600',
191
+ lineHeight: 20,
192
+ color: COLORS.secondaryBase1
193
+ },
194
+ DropdownSelect: {
195
+ borderWidth: 1,
196
+ borderColor: COLORS.secondary300,
197
+ borderRadius: 16,
198
+ flexDirection: 'row',
199
+ alignItems: 'center',
200
+ justifyContent: 'space-between',
201
+ paddingVertical: pixelSizeVertical(10),
202
+ paddingHorizontal: pixelSizeVertical(16)
203
+ },
204
+ DropdownTitle: {
205
+ fontSize: fontPixel(14),
206
+ fontWeight: '500',
207
+ lineHeight: 20,
208
+ color: COLORS.secondaryBase1
209
+ },
210
+ selectedCountryContainer: {
211
+ flexDirection: 'row',
212
+ alignItems: 'center'
213
+ },
214
+ flag: {
215
+ width: 24,
216
+ height: 24,
217
+ marginRight: pixelSizeHorizontal(8)
218
+ },
219
+ dropdownModal: {
220
+ backgroundColor: 'white',
221
+ borderRadius: 16,
222
+ marginTop: pixelSizeVertical(8),
223
+ position: 'absolute',
224
+ top: 80,
225
+ // Adjust depending on your layout
226
+ left: 16,
227
+ right: 16,
228
+ maxHeight: 300,
229
+ borderWidth: 1,
230
+ borderColor: COLORS.secondary300,
231
+ zIndex: 1000
232
+ },
233
+ dropdownItem: {
234
+ flexDirection: 'row',
235
+ alignItems: 'center',
236
+ paddingVertical: pixelSizeVertical(12),
237
+ paddingHorizontal: pixelSizeHorizontal(16)
238
+ }
239
+ });
240
+ //# sourceMappingURL=SelectDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Text","TouchableOpacity","View","FlatList","React","useEffect","useState","fontPixel","pixelSizeHorizontal","pixelSizeVertical","COLORS","BaseIcon","Page","CloseButton","useGlobalStore","Each","useBackHandler","Image","kycDocumentDetailsSize","bottomSheetModalRef","AssentifyWrapper","SelectDocument","supportedTemplates","languageCode","supportedCountries","preferredCountry","countryCode","setCountryCode","setSupportedTemplates","setKYCDocumentDetails","setDocType","setIsVisible","isOpenModal","setIsOpenModal","selectedCountry","setSelectedCountry","onClose","_bottomSheetModalRef$","current","dismiss","onScanId","kycDocumentDetailsList","length","startScanIDCard","onScanPassport","console","log","startScanPassport","onSelect","country","sourceCountryCode","onOpen","_supportedCountries$","codeToUse","selected","find","item","templates","kycDetails","forEach","kycDocumentDetails","push","createElement","scrollViewStyle","styles","ScrollView","headerLeft","onPress","style","container","CardTitle","DropdownSelect","selectedCountryContainer","source","uri","flag","width","height","undefined","aspectRatio","DropdownTitle","name","color","secondary800","dropdownModal","data","renderItem","dropdownItem","keyExtractor","Card","CardContent","CardItem","CardItemBordered","CardItemText","of","render","index","key","kycDocumentType","create","flex","backgroundColor","paddingHorizontal","marginTop","marginVertical","fontSize","fontWeight","lineHeight","secondary1200","marginBottom","borderWidth","borderColor","secondary300","borderRadius","flexDirection","alignItems","justifyContent","paddingLeft","paddingRight","paddingVertical","borderBottomWidth","borderBottomColor","secondaryBase1","marginRight","position","top","left","right","maxHeight","zIndex"],"sourceRoot":"..\\..\\..\\src","sources":["screens/SelectDocument.tsx"],"mappings":"AAAA,SAAwBA,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAChG,OAAOC,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAElD,SAASC,SAAS,EAAEC,mBAAmB,EAAEC,iBAAiB,QAAQ,mBAAmB;AACrF,SAASC,MAAM,QAAQ,WAAW;AAClC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,IAAI,MAAM,oBAAoB;AACrC,OAAOC,WAAW,MAAM,2BAA2B;AAEnD,OAAOC,cAAc,MAAM,mBAAmB;AAC9C,OAAOC,IAAI,MAAM,oBAAoB;AAErC,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,sBAAsB,EAACC,mBAAmB,QAAS,sBAAsB;AAClF,OAAQC,gBAAgB,MAAQ,qBAAqB;AAQrD,MAAMC,cAA+B,GAAGA,CAAA,KAAM;EAC5C,MAAM;IACJC,kBAAkB;IAClBC,YAAY;IACZC,kBAAkB;IAClBC,gBAAgB;IAChBC,WAAW;IACXC,cAAc;IACdC,qBAAqB;IACrBC,qBAAqB;IACrBC,UAA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AC;EACD4E,aAAa,EAAE;IACbiB,eAAe,EAAE,OAAO;IACxBY,YAAY,EAAE,EAAE;IAChBV,SAAS,EAAE9F,iBAAiB,CAAC,CAAC,CAAC;IAC/BmH,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,EAAE;IAAE;IACTC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,SAAS,EAAE,GAAG;IACdlB,WAAW,EAAE,CAAC;IACdC,WAAW,EAAErG,MAAM,CAACsG,YAAY;IAChCiB,MAAM,EAAE;EACV,CAAC;EACD1C,YAAY,EAAE;IACZ2B,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBI,eAAe,EAAE9G,iBAAiB,CAAC,EAAE,CAAC;IACtC6F,iBAAiB,EAAE9F,mBAAmB,CAAC,EAAE;EAC3C;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ export const COLORS = {
2
+ white: '#ffffff',
3
+ primaryBase1: '#66023C',
4
+ secondaryBase1: '#44546A',
5
+ secondary100: '#F9FAFB',
6
+ secondary200: '#EEF1F6',
7
+ secondary300: '#DBE0E9',
8
+ secondary700: '#808E9E',
9
+ secondary800: '#6C7B8E',
10
+ secondary1200: '#2C3844',
11
+ grey100: '#F9FAFA',
12
+ grey300: '#DCDEE1',
13
+ grey600: '#9AA0A7',
14
+ grey800: '#76797E'
15
+ };
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["COLORS","white","primaryBase1","secondaryBase1","secondary100","secondary200","secondary300","secondary700","secondary800","secondary1200","grey100","grey300","grey600","grey800"],"sourceRoot":"..\\..\\..\\src","sources":["themes/index.ts"],"mappings":"AAAA,OAAO,MAAMA,MAAM,GAAG;EACpBC,KAAK,EAAE,SAAS;EAChBC,YAAY,EAAE,SAAS;EAEvBC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,aAAa,EAAE,SAAS;EACxBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
@@ -0,0 +1,52 @@
1
+ import { Dimensions, PixelRatio, Platform } from 'react-native';
2
+ const {
3
+ width: SCREEN_WIDTH,
4
+ height: SCREEN_HEIGHT
5
+ } = Dimensions.get('window');
6
+ // const ratio = PixelRatio.get();
7
+
8
+ // Use iPhone5 as base size which is 320 x 568
9
+ // const baseWidth = 320;
10
+ // const baseHeight = 568;
11
+
12
+ // Use iPhone6 as base size which is 375 x 667
13
+ const baseWidth = 375;
14
+ const baseHeight = 667;
15
+
16
+ // const baseWidth = 375;
17
+ // const baseHeight = 811;
18
+
19
+ const scaleWidth = SCREEN_WIDTH / baseWidth;
20
+ const scaleHeight = SCREEN_HEIGHT / baseHeight;
21
+ const scale = Math.min(scaleWidth, scaleHeight);
22
+ export const normalize = (size, based = 'width') => {
23
+ // const newSize = size * scale;
24
+ const newSize = based === 'height' ? size * scale : size * scale;
25
+ if (Platform.OS === 'ios') {
26
+ return Math.round(PixelRatio.roundToNearestPixel(newSize));
27
+ } else {
28
+ return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
29
+ }
30
+ };
31
+
32
+ //for width pixel
33
+ export const widthPixel = size => {
34
+ return normalize(size, 'width');
35
+ };
36
+ //for height pixel
37
+ export const heightPixel = size => {
38
+ return normalize(size, 'height');
39
+ };
40
+ //for font pixel
41
+ export const fontPixel = size => {
42
+ return heightPixel(size);
43
+ };
44
+ //for Margin and Padding vertical pixel
45
+ export const pixelSizeVertical = size => {
46
+ return heightPixel(size);
47
+ };
48
+ //for Margin and Padding horizontal pixel
49
+ export const pixelSizeHorizontal = size => {
50
+ return widthPixel(size);
51
+ };
52
+ //# sourceMappingURL=styling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Dimensions","PixelRatio","Platform","width","SCREEN_WIDTH","height","SCREEN_HEIGHT","get","baseWidth","baseHeight","scaleWidth","scaleHeight","scale","Math","min","normalize","size","based","newSize","OS","round","roundToNearestPixel","widthPixel","heightPixel","fontPixel","pixelSizeVertical","pixelSizeHorizontal"],"sourceRoot":"..\\..\\..\\src","sources":["themes/styling.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAE/D,MAAM;EAAEC,KAAK,EAAEC,YAAY;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGN,UAAU,CAACO,GAAG,CAAC,QAAQ,CAAC;AAC/E;;AAEA;AACA;AACA;;AAEA;AACA,MAAMC,SAAS,GAAG,GAAG;AACrB,MAAMC,UAAU,GAAG,GAAG;;AAEtB;AACA;;AAEA,MAAMC,UAAU,GAAGN,YAAY,GAAGI,SAAS;AAC3C,MAAMG,WAAW,GAAGL,aAAa,GAAGG,UAAU;AAC9C,MAAMG,KAAK,GAAGC,IAAI,CAACC,GAAG,CAACJ,UAAU,EAAEC,WAAW,CAAC;AAE/C,OAAO,MAAMI,SAAS,GAAGA,CACvBC,IAAY,EACZC,KAAyB,GAAG,OAAO,KAChC;EACH;EACA,MAAMC,OAAO,GAAGD,KAAK,KAAK,QAAQ,GAAGD,IAAI,GAAGJ,KAAK,GAAGI,IAAI,GAAGJ,KAAK;EAChE,IAAIV,QAAQ,CAACiB,EAAE,KAAK,KAAK,EAAE;IACzB,OAAON,IAAI,CAACO,KAAK,CAACnB,UAAU,CAACoB,mBAAmB,CAACH,OAAO,CAAC,CAAC;EAC5D,CAAC,MAAM;IACL,OAAOL,IAAI,CAACO,KAAK,CAACnB,UAAU,CAACoB,mBAAmB,CAACH,OAAO,CAAC,CAAC,GAAG,CAAC;EAChE;AACF,CAAC;;AAED;AACA,OAAO,MAAMI,UAAU,GAAIN,IAAY,IAAK;EAC1C,OAAOD,SAAS,CAACC,IAAI,EAAE,OAAO,CAAC;AACjC,CAAC;AACD;AACA,OAAO,MAAMO,WAAW,GAAIP,IAAY,IAAK;EAC3C,OAAOD,SAAS,CAACC,IAAI,EAAE,QAAQ,CAAC;AAClC,CAAC;AACD;AACA,OAAO,MAAMQ,SAAS,GAAIR,IAAY,IAAK;EACzC,OAAOO,WAAW,CAACP,IAAI,CAAC;AAC1B,CAAC;AACD;AACA,OAAO,MAAMS,iBAAiB,GAAIT,IAAY,IAAK;EACjD,OAAOO,WAAW,CAACP,IAAI,CAAC;AAC1B,CAAC;AACD;AACA,OAAO,MAAMU,mBAAmB,GAAIV,IAAY,IAAK;EACnD,OAAOM,UAAU,CAACN,IAAI,CAAC;AACzB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["MotionType","ZoomType","MotionTypeObj","NO_DETECT","HOLD_YOUR_HAND","SENDING","ZoomTypeObj","ZOOM_IN","ZOOM_OUT","FAILED_RESULT"],"sourceRoot":"..\\..\\src","sources":["types.ts"],"mappings":"AAkLA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAMtB,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAARA,QAAQ,CAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAOpB,OAAO,MAAMC,aAAa,GAAG;EAC3BC,SAAS,EAAE,WAAW;EACtBC,cAAc,EAAE,gBAAgB;EAChCC,OAAO,EAAE;AACX,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBH,SAAS,EAAE,WAAW;EACtBI,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpBH,OAAO,EAAE;AACX,CAAC;AAED,WAAYI,aAAa,0BAAbA,aAAa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Aa;AAAA","ignoreList":[]}
@@ -0,0 +1,46 @@
1
+ import { create } from 'zustand';
2
+ const persistState = {
3
+ countryCode: '',
4
+ languageCode: '',
5
+ preferredCountry: [],
6
+ supportedCountries: [],
7
+ supportedTemplates: [],
8
+ kycDocumentDetails: []
9
+ };
10
+ const initialState = {
11
+ docType: null,
12
+ isVisible: false
13
+ };
14
+ const useGlobalStore = create()(set => ({
15
+ ...initialState,
16
+ ...persistState,
17
+ setCountryCode: countryCode => set({
18
+ countryCode: countryCode
19
+ }),
20
+ setFlowLanguage: languageCode => set({
21
+ languageCode: languageCode
22
+ }),
23
+ setPreferredCountry: preferredCountry => set({
24
+ preferredCountry
25
+ }),
26
+ setSupportedCountries: supportedCountries => set({
27
+ supportedCountries
28
+ }),
29
+ setSupportedTemplates: supportedTemplates => set({
30
+ supportedTemplates
31
+ }),
32
+ setKYCDocumentDetails: kycDocumentDetails => set({
33
+ kycDocumentDetails
34
+ }),
35
+ setDocType: docType => set({
36
+ docType
37
+ }),
38
+ setIsVisible: isVisible => set({
39
+ isVisible
40
+ }),
41
+ clearGlobalStore: () => set({
42
+ ...initialState
43
+ })
44
+ }));
45
+ export default useGlobalStore;
46
+ //# sourceMappingURL=useGlobalStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["create","persistState","countryCode","languageCode","preferredCountry","supportedCountries","supportedTemplates","kycDocumentDetails","initialState","docType","isVisible","useGlobalStore","set","setCountryCode","setFlowLanguage","setPreferredCountry","setSupportedCountries","setSupportedTemplates","setKYCDocumentDetails","setDocType","setIsVisible","clearGlobalStore"],"sourceRoot":"..\\..\\src","sources":["useGlobalStore.ts"],"mappings":"AASA,SAASA,MAAM,QAAQ,SAAS;AA2BhC,MAAMC,YAAY,GAAG;EACnBC,WAAW,EAAE,EAAiB;EAC9BC,YAAY,EAAE,EAAkB;EAChCC,gBAAgB,EAAE,EAAE;EACpBC,kBAAkB,EAAE,EAAE;EACtBC,kBAAkB,EAAE,EAAE;EACtBC,kBAAkB,EAAE;AACtB,CAAC;AAED,MAAMC,YAAY,GAAG;EACnBC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,cAAc,GAAGX,MAAM,CAAmB,CAAC,CAAEY,GAAG,KAAM;EAC1D,GAAGJ,YAAY;EACf,GAAGP,YAAY;EACfY,cAAc,EAAGX,WAA+B,IAAKU,GAAG,CAAC;IAAEV,WAAW,EAAEA;EAAmB,CAAC,CAAC;EAC7FY,eAAe,EAAGX,YAAiC,IAAKS,GAAG,CAAC;IAAET,YAAY,EAAEA;EAAoB,CAAC,CAAC;EAClGY,mBAAmB,EAAGX,gBAA+B,IAAIQ,GAAG,CAAC;IAAER;EAAiB,CAAC,CAAC;EAClFY,qBAAqB,EAAGX,kBAAwC,IAAKO,GAAG,CAAC;IAAEP;EAAmB,CAAC,CAAC;EAChGY,qBAAqB,EAAGX,kBAA+B,IAAIM,GAAG,CAAC;IAAEN;EAAmB,CAAC,CAAC;EACtFY,qBAAqB,EAAGX,kBAA+C,IAAIK,GAAG,CAAC;IAAEL;EAAmB,CAAC,CAAC;EACtGY,UAAU,EAAGV,OAAsB,IAAKG,GAAG,CAAC;IAAEH;EAAQ,CAAC,CAAC;EACxDW,YAAY,EAAGV,SAAkB,IAAKE,GAAG,CAAC;IAAEF;EAAU,CAAC,CAAC;EACxDW,gBAAgB,EAAEA,CAAA,KAAMT,GAAG,CAAC;IAAE,GAAGJ;EAAa,CAAC;AACjD,CAAC,CAAC,CAAC;AAEH,eAAeG,cAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAoBlD,QAAA,MAAM,IAAI,yBAyKT,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../../../example/src/Home.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,QAAA,MAAM,IAAI,yBAqNT,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export const __esModule: boolean;
2
+ export const bottomSheetModalRef: any;
3
+ export const kycDocumentDetailsSize: any;
2
4
  export function AssentifyProvider(): any;
3
5
  //# sourceMappingURL=AssentifyProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssentifyProvider.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyProvider.js"],"names":[],"mappings":";AAoBA,yCAmLC"}
1
+ {"version":3,"file":"AssentifyProvider.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyProvider.js"],"names":[],"mappings":";;;AAgCA,yCAsNC"}
@@ -7,5 +7,6 @@ declare namespace AssentifyWrapper {
7
7
  function startScanIDCard(kycDocumentDetailsList: any, language: any, flippingCard: any): void;
8
8
  function startFaceMatch(imageUrl: any, showCountDown: any): void;
9
9
  function submitData(dataMap: any): void;
10
+ function startFlow(language: any): void;
10
11
  }
11
12
  //# sourceMappingURL=AssentifyWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IAsBc,8TA8BX;IAEkB,gDAElB;IAEe,6CAEf;IAEgB,8FAEhB;IAEe,iEAEf;IAEW,wCAEX"}
1
+ {"version":3,"file":"AssentifyWrapper.d.ts","sourceRoot":"","sources":["../../../commonjs/AssentifyWrapper.js"],"names":[],"mappings":";;;IA2Bc,8TAEX;IAEkB,gDAElB;IAEe,6CAEf;IAEgB,8FAEhB;IAEe,iEAEf;IAEW,wCAEX;IAEU,wCAIV"}
@@ -0,0 +1,6 @@
1
+ export const __esModule: boolean;
2
+ export default BackButton;
3
+ declare function BackButton({ onPress }: {
4
+ onPress: any;
5
+ }): any;
6
+ //# sourceMappingURL=BackButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../../commonjs/components/BackButton.js"],"names":[],"mappings":";;AAYA;;QAUC"}
@@ -0,0 +1,7 @@
1
+ export const __esModule: boolean;
2
+ export default BaseButton;
3
+ declare function BaseButton({ label, onPress }: {
4
+ label: any;
5
+ onPress: any;
6
+ }): any;
7
+ //# sourceMappingURL=BaseButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../commonjs/components/BaseButton.js"],"names":[],"mappings":";;AAWA;;;QAWC"}
@@ -0,0 +1,29 @@
1
+ export const __esModule: boolean;
2
+ export default BaseIcon;
3
+ /**
4
+ *
5
+ * <div class="screenshots">
6
+ * <figure>
7
+ * <img class="small" src="screenshots/icon-1.png" />
8
+ * <figcaption>Default icon</figcaption>
9
+ * </figure>
10
+ * <figure>
11
+ * <img class="small" src="screenshots/icon-2.png" />
12
+ * <figcaption>Custom icon colors</figcaption>
13
+ * </figure>
14
+ * <figure>
15
+ * <img class="small" src="screenshots/icon-3.png" />
16
+ * <figcaption>Custom icon sizes</figcaption>
17
+ * </figure>
18
+ * </div>
19
+ *
20
+ * ## Usage
21
+ * ```js
22
+ */
23
+ declare function BaseIcon({ name, color, size, ...rest }: {
24
+ [x: string]: any;
25
+ name: any;
26
+ color: any;
27
+ size: any;
28
+ }): any;
29
+ //# sourceMappingURL=BaseIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseIcon.d.ts","sourceRoot":"","sources":["../../../../commonjs/components/BaseIcon.js"],"names":[],"mappings":";;AAgBA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;QA2CC"}
@@ -0,0 +1,6 @@
1
+ export const __esModule: boolean;
2
+ export default CloseButton;
3
+ declare function CloseButton({ onPress }: {
4
+ onPress: any;
5
+ }): any;
6
+ //# sourceMappingURL=CloseButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../commonjs/components/CloseButton.js"],"names":[],"mappings":";;AAYA;;QAUC"}