assentify-sdk-react-native 0.0.2 → 0.0.3

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 (297) hide show
  1. package/lib/commonjs/AssentifyProvider.js +2 -49
  2. package/lib/commonjs/AssentifyProvider.js.map +1 -1
  3. package/lib/commonjs/AssentifyWrapper.js +0 -12
  4. package/lib/commonjs/AssentifyWrapper.js.map +1 -1
  5. package/lib/commonjs/types.js.map +1 -1
  6. package/lib/module/AssentifyProvider.js +2 -50
  7. package/lib/module/AssentifyProvider.js.map +1 -1
  8. package/lib/module/AssentifyWrapper.js +0 -11
  9. package/lib/module/AssentifyWrapper.js.map +1 -1
  10. package/lib/module/types.js.map +1 -1
  11. package/lib/typescript/example/src/Home.d.ts.map +1 -1
  12. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +0 -2
  13. package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
  14. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +0 -1
  15. package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
  16. package/lib/typescript/lib/module/AssentifyProvider.d.ts +1 -3
  17. package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
  18. package/lib/typescript/lib/module/AssentifyWrapper.d.ts +0 -1
  19. package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
  20. package/lib/typescript/lib/module/index.d.ts +0 -1
  21. package/lib/typescript/lib/module/index.d.ts.map +1 -1
  22. package/lib/typescript/src/AssentifyProvider.d.ts +0 -3
  23. package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
  24. package/lib/typescript/src/AssentifyWrapper.d.ts +0 -1
  25. package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
  26. package/lib/typescript/src/index.d.ts +0 -1
  27. package/lib/typescript/src/index.d.ts.map +1 -1
  28. package/lib/typescript/src/types.d.ts +0 -2
  29. package/lib/typescript/src/types.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/src/AssentifyProvider.tsx +5 -59
  32. package/src/AssentifyWrapper.ts +19 -29
  33. package/src/types.ts +0 -3
  34. package/lib/commonjs/components/BackButton.js +0 -33
  35. package/lib/commonjs/components/BackButton.js.map +0 -1
  36. package/lib/commonjs/components/BaseButton.js +0 -41
  37. package/lib/commonjs/components/BaseButton.js.map +0 -1
  38. package/lib/commonjs/components/BaseIcon.js +0 -83
  39. package/lib/commonjs/components/BaseIcon.js.map +0 -1
  40. package/lib/commonjs/components/CloseButton.js +0 -33
  41. package/lib/commonjs/components/CloseButton.js.map +0 -1
  42. package/lib/commonjs/components/CustomHeader.js +0 -54
  43. package/lib/commonjs/components/CustomHeader.js.map +0 -1
  44. package/lib/commonjs/components/Each.js +0 -16
  45. package/lib/commonjs/components/Each.js.map +0 -1
  46. package/lib/commonjs/components/Page.js +0 -45
  47. package/lib/commonjs/components/Page.js.map +0 -1
  48. package/lib/commonjs/components/icons/arrow-left.js +0 -28
  49. package/lib/commonjs/components/icons/arrow-left.js.map +0 -1
  50. package/lib/commonjs/components/icons/big-warning.js +0 -34
  51. package/lib/commonjs/components/icons/big-warning.js.map +0 -1
  52. package/lib/commonjs/components/icons/check-success.js +0 -28
  53. package/lib/commonjs/components/icons/check-success.js.map +0 -1
  54. package/lib/commonjs/components/icons/chevron-down.js +0 -28
  55. package/lib/commonjs/components/icons/chevron-down.js.map +0 -1
  56. package/lib/commonjs/components/icons/chevron-left.js +0 -28
  57. package/lib/commonjs/components/icons/chevron-left.js.map +0 -1
  58. package/lib/commonjs/components/icons/chevron-right.js +0 -28
  59. package/lib/commonjs/components/icons/chevron-right.js.map +0 -1
  60. package/lib/commonjs/components/icons/chevron-up.js +0 -27
  61. package/lib/commonjs/components/icons/chevron-up.js.map +0 -1
  62. package/lib/commonjs/components/icons/close.js +0 -28
  63. package/lib/commonjs/components/icons/close.js.map +0 -1
  64. package/lib/commonjs/components/type.js +0 -2
  65. package/lib/commonjs/components/type.js.map +0 -1
  66. package/lib/commonjs/helpers/NavigationService.js +0 -80
  67. package/lib/commonjs/helpers/NavigationService.js.map +0 -1
  68. package/lib/commonjs/helpers/constants.js +0 -16
  69. package/lib/commonjs/helpers/constants.js.map +0 -1
  70. package/lib/commonjs/helpers/useBackHandler.js +0 -16
  71. package/lib/commonjs/helpers/useBackHandler.js.map +0 -1
  72. package/lib/commonjs/navigator/index.js +0 -30
  73. package/lib/commonjs/navigator/index.js.map +0 -1
  74. package/lib/commonjs/screens/SelectDocument.js +0 -248
  75. package/lib/commonjs/screens/SelectDocument.js.map +0 -1
  76. package/lib/commonjs/themes/index.js +0 -22
  77. package/lib/commonjs/themes/index.js.map +0 -1
  78. package/lib/commonjs/themes/styling.js +0 -64
  79. package/lib/commonjs/themes/styling.js.map +0 -1
  80. package/lib/commonjs/useGlobalStore.js +0 -52
  81. package/lib/commonjs/useGlobalStore.js.map +0 -1
  82. package/lib/module/components/BackButton.js +0 -26
  83. package/lib/module/components/BackButton.js.map +0 -1
  84. package/lib/module/components/BaseButton.js +0 -34
  85. package/lib/module/components/BaseButton.js.map +0 -1
  86. package/lib/module/components/BaseIcon.js +0 -76
  87. package/lib/module/components/BaseIcon.js.map +0 -1
  88. package/lib/module/components/CloseButton.js +0 -26
  89. package/lib/module/components/CloseButton.js.map +0 -1
  90. package/lib/module/components/CustomHeader.js +0 -47
  91. package/lib/module/components/CustomHeader.js.map +0 -1
  92. package/lib/module/components/Each.js +0 -9
  93. package/lib/module/components/Each.js.map +0 -1
  94. package/lib/module/components/Page.js +0 -38
  95. package/lib/module/components/Page.js.map +0 -1
  96. package/lib/module/components/icons/arrow-left.js +0 -19
  97. package/lib/module/components/icons/arrow-left.js.map +0 -1
  98. package/lib/module/components/icons/big-warning.js +0 -25
  99. package/lib/module/components/icons/big-warning.js.map +0 -1
  100. package/lib/module/components/icons/check-success.js +0 -19
  101. package/lib/module/components/icons/check-success.js.map +0 -1
  102. package/lib/module/components/icons/chevron-down.js +0 -19
  103. package/lib/module/components/icons/chevron-down.js.map +0 -1
  104. package/lib/module/components/icons/chevron-left.js +0 -19
  105. package/lib/module/components/icons/chevron-left.js.map +0 -1
  106. package/lib/module/components/icons/chevron-right.js +0 -19
  107. package/lib/module/components/icons/chevron-right.js.map +0 -1
  108. package/lib/module/components/icons/chevron-up.js +0 -19
  109. package/lib/module/components/icons/chevron-up.js.map +0 -1
  110. package/lib/module/components/icons/close.js +0 -19
  111. package/lib/module/components/icons/close.js.map +0 -1
  112. package/lib/module/components/type.js +0 -2
  113. package/lib/module/components/type.js.map +0 -1
  114. package/lib/module/helpers/NavigationService.js +0 -75
  115. package/lib/module/helpers/NavigationService.js.map +0 -1
  116. package/lib/module/helpers/constants.js +0 -10
  117. package/lib/module/helpers/constants.js.map +0 -1
  118. package/lib/module/helpers/useBackHandler.js +0 -10
  119. package/lib/module/helpers/useBackHandler.js.map +0 -1
  120. package/lib/module/navigator/index.js +0 -23
  121. package/lib/module/navigator/index.js.map +0 -1
  122. package/lib/module/screens/SelectDocument.js +0 -240
  123. package/lib/module/screens/SelectDocument.js.map +0 -1
  124. package/lib/module/themes/index.js +0 -16
  125. package/lib/module/themes/index.js.map +0 -1
  126. package/lib/module/themes/styling.js +0 -52
  127. package/lib/module/themes/styling.js.map +0 -1
  128. package/lib/module/useGlobalStore.js +0 -46
  129. package/lib/module/useGlobalStore.js.map +0 -1
  130. package/lib/typescript/lib/commonjs/components/BackButton.d.ts +0 -6
  131. package/lib/typescript/lib/commonjs/components/BackButton.d.ts.map +0 -1
  132. package/lib/typescript/lib/commonjs/components/BaseButton.d.ts +0 -7
  133. package/lib/typescript/lib/commonjs/components/BaseButton.d.ts.map +0 -1
  134. package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts +0 -29
  135. package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts.map +0 -1
  136. package/lib/typescript/lib/commonjs/components/CloseButton.d.ts +0 -6
  137. package/lib/typescript/lib/commonjs/components/CloseButton.d.ts.map +0 -1
  138. package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts +0 -9
  139. package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts.map +0 -1
  140. package/lib/typescript/lib/commonjs/components/Each.d.ts +0 -7
  141. package/lib/typescript/lib/commonjs/components/Each.d.ts.map +0 -1
  142. package/lib/typescript/lib/commonjs/components/Page.d.ts +0 -14
  143. package/lib/typescript/lib/commonjs/components/Page.d.ts.map +0 -1
  144. package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts +0 -4
  145. package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts.map +0 -1
  146. package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts +0 -4
  147. package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts.map +0 -1
  148. package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts +0 -4
  149. package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts.map +0 -1
  150. package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts +0 -4
  151. package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts.map +0 -1
  152. package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts +0 -4
  153. package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts.map +0 -1
  154. package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts +0 -4
  155. package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts.map +0 -1
  156. package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts +0 -4
  157. package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts.map +0 -1
  158. package/lib/typescript/lib/commonjs/components/icons/close.d.ts +0 -4
  159. package/lib/typescript/lib/commonjs/components/icons/close.d.ts.map +0 -1
  160. package/lib/typescript/lib/commonjs/components/type.d.ts +0 -1
  161. package/lib/typescript/lib/commonjs/components/type.d.ts.map +0 -1
  162. package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts +0 -29
  163. package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts.map +0 -1
  164. package/lib/typescript/lib/commonjs/helpers/constants.d.ts +0 -11
  165. package/lib/typescript/lib/commonjs/helpers/constants.d.ts.map +0 -1
  166. package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts +0 -3
  167. package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts.map +0 -1
  168. package/lib/typescript/lib/commonjs/navigator/index.d.ts +0 -4
  169. package/lib/typescript/lib/commonjs/navigator/index.d.ts.map +0 -1
  170. package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts +0 -4
  171. package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts.map +0 -1
  172. package/lib/typescript/lib/commonjs/themes/index.d.ts +0 -17
  173. package/lib/typescript/lib/commonjs/themes/index.d.ts.map +0 -1
  174. package/lib/typescript/lib/commonjs/themes/styling.d.ts +0 -8
  175. package/lib/typescript/lib/commonjs/themes/styling.d.ts.map +0 -1
  176. package/lib/typescript/lib/commonjs/useGlobalStore.d.ts +0 -5
  177. package/lib/typescript/lib/commonjs/useGlobalStore.d.ts.map +0 -1
  178. package/lib/typescript/lib/module/components/BackButton.d.ts +0 -7
  179. package/lib/typescript/lib/module/components/BackButton.d.ts.map +0 -1
  180. package/lib/typescript/lib/module/components/BaseButton.d.ts +0 -8
  181. package/lib/typescript/lib/module/components/BaseButton.d.ts.map +0 -1
  182. package/lib/typescript/lib/module/components/BaseIcon.d.ts +0 -29
  183. package/lib/typescript/lib/module/components/BaseIcon.d.ts.map +0 -1
  184. package/lib/typescript/lib/module/components/CloseButton.d.ts +0 -7
  185. package/lib/typescript/lib/module/components/CloseButton.d.ts.map +0 -1
  186. package/lib/typescript/lib/module/components/CustomHeader.d.ts +0 -10
  187. package/lib/typescript/lib/module/components/CustomHeader.d.ts.map +0 -1
  188. package/lib/typescript/lib/module/components/Each.d.ts +0 -7
  189. package/lib/typescript/lib/module/components/Each.d.ts.map +0 -1
  190. package/lib/typescript/lib/module/components/Page.d.ts +0 -15
  191. package/lib/typescript/lib/module/components/Page.d.ts.map +0 -1
  192. package/lib/typescript/lib/module/components/icons/arrow-left.d.ts +0 -5
  193. package/lib/typescript/lib/module/components/icons/arrow-left.d.ts.map +0 -1
  194. package/lib/typescript/lib/module/components/icons/big-warning.d.ts +0 -5
  195. package/lib/typescript/lib/module/components/icons/big-warning.d.ts.map +0 -1
  196. package/lib/typescript/lib/module/components/icons/check-success.d.ts +0 -5
  197. package/lib/typescript/lib/module/components/icons/check-success.d.ts.map +0 -1
  198. package/lib/typescript/lib/module/components/icons/chevron-down.d.ts +0 -5
  199. package/lib/typescript/lib/module/components/icons/chevron-down.d.ts.map +0 -1
  200. package/lib/typescript/lib/module/components/icons/chevron-left.d.ts +0 -5
  201. package/lib/typescript/lib/module/components/icons/chevron-left.d.ts.map +0 -1
  202. package/lib/typescript/lib/module/components/icons/chevron-right.d.ts +0 -5
  203. package/lib/typescript/lib/module/components/icons/chevron-right.d.ts.map +0 -1
  204. package/lib/typescript/lib/module/components/icons/chevron-up.d.ts +0 -5
  205. package/lib/typescript/lib/module/components/icons/chevron-up.d.ts.map +0 -1
  206. package/lib/typescript/lib/module/components/icons/close.d.ts +0 -5
  207. package/lib/typescript/lib/module/components/icons/close.d.ts.map +0 -1
  208. package/lib/typescript/lib/module/components/type.d.ts +0 -1
  209. package/lib/typescript/lib/module/components/type.d.ts.map +0 -1
  210. package/lib/typescript/lib/module/helpers/NavigationService.d.ts +0 -28
  211. package/lib/typescript/lib/module/helpers/NavigationService.d.ts.map +0 -1
  212. package/lib/typescript/lib/module/helpers/constants.d.ts +0 -10
  213. package/lib/typescript/lib/module/helpers/constants.d.ts.map +0 -1
  214. package/lib/typescript/lib/module/helpers/useBackHandler.d.ts +0 -2
  215. package/lib/typescript/lib/module/helpers/useBackHandler.d.ts.map +0 -1
  216. package/lib/typescript/lib/module/navigator/index.d.ts +0 -4
  217. package/lib/typescript/lib/module/navigator/index.d.ts.map +0 -1
  218. package/lib/typescript/lib/module/screens/SelectDocument.d.ts +0 -4
  219. package/lib/typescript/lib/module/screens/SelectDocument.d.ts.map +0 -1
  220. package/lib/typescript/lib/module/themes/index.d.ts +0 -16
  221. package/lib/typescript/lib/module/themes/index.d.ts.map +0 -1
  222. package/lib/typescript/lib/module/themes/styling.d.ts +0 -7
  223. package/lib/typescript/lib/module/themes/styling.d.ts.map +0 -1
  224. package/lib/typescript/lib/module/useGlobalStore.d.ts +0 -3
  225. package/lib/typescript/lib/module/useGlobalStore.d.ts.map +0 -1
  226. package/lib/typescript/src/components/BackButton.d.ts +0 -7
  227. package/lib/typescript/src/components/BackButton.d.ts.map +0 -1
  228. package/lib/typescript/src/components/BaseButton.d.ts +0 -8
  229. package/lib/typescript/src/components/BaseButton.d.ts.map +0 -1
  230. package/lib/typescript/src/components/BaseIcon.d.ts +0 -45
  231. package/lib/typescript/src/components/BaseIcon.d.ts.map +0 -1
  232. package/lib/typescript/src/components/CloseButton.d.ts +0 -7
  233. package/lib/typescript/src/components/CloseButton.d.ts.map +0 -1
  234. package/lib/typescript/src/components/CustomHeader.d.ts +0 -12
  235. package/lib/typescript/src/components/CustomHeader.d.ts.map +0 -1
  236. package/lib/typescript/src/components/Each.d.ts +0 -8
  237. package/lib/typescript/src/components/Each.d.ts.map +0 -1
  238. package/lib/typescript/src/components/Page.d.ts +0 -17
  239. package/lib/typescript/src/components/Page.d.ts.map +0 -1
  240. package/lib/typescript/src/components/icons/arrow-left.d.ts +0 -4
  241. package/lib/typescript/src/components/icons/arrow-left.d.ts.map +0 -1
  242. package/lib/typescript/src/components/icons/big-warning.d.ts +0 -4
  243. package/lib/typescript/src/components/icons/big-warning.d.ts.map +0 -1
  244. package/lib/typescript/src/components/icons/check-success.d.ts +0 -4
  245. package/lib/typescript/src/components/icons/check-success.d.ts.map +0 -1
  246. package/lib/typescript/src/components/icons/chevron-down.d.ts +0 -4
  247. package/lib/typescript/src/components/icons/chevron-down.d.ts.map +0 -1
  248. package/lib/typescript/src/components/icons/chevron-left.d.ts +0 -4
  249. package/lib/typescript/src/components/icons/chevron-left.d.ts.map +0 -1
  250. package/lib/typescript/src/components/icons/chevron-right.d.ts +0 -4
  251. package/lib/typescript/src/components/icons/chevron-right.d.ts.map +0 -1
  252. package/lib/typescript/src/components/icons/chevron-up.d.ts +0 -4
  253. package/lib/typescript/src/components/icons/chevron-up.d.ts.map +0 -1
  254. package/lib/typescript/src/components/icons/close.d.ts +0 -4
  255. package/lib/typescript/src/components/icons/close.d.ts.map +0 -1
  256. package/lib/typescript/src/components/type.d.ts +0 -3
  257. package/lib/typescript/src/components/type.d.ts.map +0 -1
  258. package/lib/typescript/src/helpers/NavigationService.d.ts +0 -29
  259. package/lib/typescript/src/helpers/NavigationService.d.ts.map +0 -1
  260. package/lib/typescript/src/helpers/constants.d.ts +0 -10
  261. package/lib/typescript/src/helpers/constants.d.ts.map +0 -1
  262. package/lib/typescript/src/helpers/useBackHandler.d.ts +0 -2
  263. package/lib/typescript/src/helpers/useBackHandler.d.ts.map +0 -1
  264. package/lib/typescript/src/navigator/index.d.ts +0 -4
  265. package/lib/typescript/src/navigator/index.d.ts.map +0 -1
  266. package/lib/typescript/src/screens/SelectDocument.d.ts +0 -5
  267. package/lib/typescript/src/screens/SelectDocument.d.ts.map +0 -1
  268. package/lib/typescript/src/themes/index.d.ts +0 -16
  269. package/lib/typescript/src/themes/index.d.ts.map +0 -1
  270. package/lib/typescript/src/themes/styling.d.ts +0 -7
  271. package/lib/typescript/src/themes/styling.d.ts.map +0 -1
  272. package/lib/typescript/src/useGlobalStore.d.ts +0 -25
  273. package/lib/typescript/src/useGlobalStore.d.ts.map +0 -1
  274. package/src/components/BackButton.tsx +0 -28
  275. package/src/components/BaseButton.tsx +0 -44
  276. package/src/components/BaseIcon.tsx +0 -96
  277. package/src/components/CloseButton.tsx +0 -28
  278. package/src/components/CustomHeader.tsx +0 -58
  279. package/src/components/Each.tsx +0 -12
  280. package/src/components/Page.tsx +0 -64
  281. package/src/components/icons/arrow-left.tsx +0 -22
  282. package/src/components/icons/big-warning.tsx +0 -29
  283. package/src/components/icons/check-success.tsx +0 -22
  284. package/src/components/icons/chevron-down.tsx +0 -22
  285. package/src/components/icons/chevron-left.tsx +0 -22
  286. package/src/components/icons/chevron-right.tsx +0 -22
  287. package/src/components/icons/chevron-up.tsx +0 -22
  288. package/src/components/icons/close.tsx +0 -22
  289. package/src/components/type.ts +0 -11
  290. package/src/helpers/NavigationService.ts +0 -89
  291. package/src/helpers/constants.ts +0 -13
  292. package/src/helpers/useBackHandler.ts +0 -14
  293. package/src/navigator/index.tsx +0 -34
  294. package/src/screens/SelectDocument.tsx +0 -250
  295. package/src/themes/index.ts +0 -16
  296. package/src/themes/styling.ts +0 -53
  297. package/src/useGlobalStore.ts +0 -65
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import Svg, { Path, type SvgProps } from 'react-native-svg';
3
-
4
- const ChevronRightIcon: React.FC = (props: SvgProps) => (
5
- <Svg
6
- width={24}
7
- height={24}
8
- viewBox="0 0 24 24"
9
- fill="none"
10
- // @ts-ignore
11
- xmlns="http://www.w3.org/2000/svg"
12
- {...props}
13
- >
14
- <Path
15
- fillRule="evenodd"
16
- clipRule="evenodd"
17
- d="M8.46967 18.5303C8.17678 18.2374 8.17678 17.7626 8.46967 17.4697L13.9393 12L8.46967 6.53033C8.17678 6.23744 8.17678 5.76256 8.46967 5.46967C8.76256 5.17678 9.23744 5.17678 9.53033 5.46967L15.5303 11.4697C15.8232 11.7626 15.8232 12.2374 15.5303 12.5303L9.53033 18.5303C9.23744 18.8232 8.76256 18.8232 8.46967 18.5303Z"
18
- fill={props.color}
19
- />
20
- </Svg>
21
- );
22
- export default ChevronRightIcon;
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import Svg, { Path, type SvgProps } from 'react-native-svg';
3
-
4
- const ChevronUpIcon: React.FC = (props: SvgProps) => (
5
- <Svg
6
- width={24}
7
- height={24}
8
- viewBox="0 0 24 24"
9
- fill="none"
10
- // @ts-ignore
11
- xmlns="http://www.w3.org/2000/svg"
12
- {...props}
13
- >
14
- <Path
15
- fillRule="evenodd"
16
- clipRule="evenodd"
17
- d="M18.5303 15.5303C18.2374 15.8232 17.7626 15.8232 17.4697 15.5303L12 10.0607L6.53033 15.5303C6.23744 15.8232 5.76256 15.8232 5.46967 15.5303C5.17678 15.2374 5.17678 14.7626 5.46967 14.4697L11.4697 8.46967C11.7626 8.17678 12.2374 8.17678 12.5303 8.46967L18.5303 14.4697C18.8232 14.7626 18.8232 15.2374 18.5303 15.5303Z"
18
- fill={props.color}
19
- />
20
- </Svg>
21
- );
22
- export default ChevronUpIcon;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import Svg, { Path, type SvgProps } from 'react-native-svg';
3
-
4
- const CloseIcon: React.FC = (props: SvgProps) => (
5
- <Svg
6
- width={24}
7
- height={24}
8
- viewBox="0 0 24 24"
9
- fill="none"
10
- // @ts-ignore
11
- xmlns="http://www.w3.org/2000/svg"
12
- {...props}
13
- >
14
- <Path
15
- fillRule="evenodd"
16
- clipRule="evenodd"
17
- d="M6.22772 6.22662C6.52064 5.93376 6.99551 5.9338 7.28838 6.22672L12.0001 10.9393L16.7137 6.22662C17.0066 5.93376 17.4815 5.9338 17.7744 6.22672C18.0672 6.51965 18.0672 6.99452 17.7743 7.28738L13.0612 11.9996L17.7743 16.7127C18.0672 17.0056 18.0672 17.4804 17.7743 17.7733C17.4814 18.0662 17.0066 18.0662 16.7137 17.7733L12.001 13.0607L7.28833 17.7733C6.99543 18.0662 6.52056 18.0662 6.22767 17.7733C5.93477 17.4804 5.93477 17.0056 6.22767 16.7127L10.9399 12.0005L6.22761 7.28728C5.93475 6.99436 5.93479 6.51949 6.22772 6.22662Z"
18
- fill={props.color}
19
- />
20
- </Svg>
21
- );
22
- export default CloseIcon;
@@ -1,11 +0,0 @@
1
- export type ThemeIcon =
2
- | 'chevron_down'
3
- | 'chevron_left'
4
- | 'chevron_right'
5
- | 'chevron_up'
6
- | 'close'
7
- | 'arrow_left'
8
- | 'big_warning'
9
- | 'check_success';
10
-
11
- export type ThemeIcons = Record<ThemeIcon, string>;
@@ -1,89 +0,0 @@
1
- import {
2
- StackActions,
3
- CommonActions,
4
- type NavigationContainerRef,
5
- } from '@react-navigation/native';
6
-
7
- let _navigator: NavigationContainerRef<any>;
8
- let currentRoute = 'Profile';
9
-
10
- function setTopLevelNavigator(navigatorRef?: NavigationContainerRef<any>) {
11
- _navigator = navigatorRef!;
12
- }
13
-
14
- function navigate(routeName: string, params?: any) {
15
- _navigator.navigate(routeName, params);
16
- }
17
-
18
- function replace(routeName: string, params?: any) {
19
- _navigator.dispatch(StackActions.replace(routeName, params));
20
- }
21
-
22
- function push(routeName: string, params?: any) {
23
- _navigator.dispatch(StackActions.push(routeName, params));
24
- }
25
-
26
- function pop(number = 1) {
27
- _navigator.dispatch(StackActions.pop(number));
28
- }
29
-
30
- function popToTop() {
31
- _navigator.dispatch(StackActions.popToTop());
32
- }
33
-
34
- function goBack() {
35
- _navigator.goBack();
36
- }
37
-
38
- function canGoBack() {
39
- return _navigator.canGoBack();
40
- }
41
-
42
- function getNavigator() {
43
- return _navigator;
44
- }
45
-
46
- function reset(routeName: string) {
47
- // _navigator.dispatch(
48
- // StackActions.reset({
49
- // index: 0,
50
- // actions: [NavigationActions.navigate({ routeName })],
51
- // }),
52
- // );
53
-
54
- const resetAction = CommonActions.reset({
55
- index: 0,
56
- routes: [{ name: routeName }],
57
- });
58
- _navigator.dispatch(resetAction);
59
- }
60
-
61
- function setCurrentRoute(route: string) {
62
- currentRoute = route;
63
- }
64
-
65
- function getCurrentRoute() {
66
- return currentRoute;
67
- // let route = _navigator.state.nav;
68
- // while (route.routes) {
69
- // route = route.routes[route.index];
70
- // }
71
- // return route.routeName;
72
- }
73
-
74
- // add other navigation functions that you need and export them
75
-
76
- export default {
77
- replace,
78
- push,
79
- pop,
80
- setTopLevelNavigator,
81
- setCurrentRoute,
82
- getCurrentRoute,
83
- getNavigator,
84
- navigate,
85
- reset,
86
- popToTop,
87
- goBack,
88
- canGoBack,
89
- };
@@ -1,13 +0,0 @@
1
- export const DOC_TYPE = {
2
- PASSPORT: 'passport',
3
- CIVIL_ID: 'civil_id',
4
- OTHER: 'other',
5
- };
6
-
7
- export const PAGES = {
8
- SELECT_DOCUMENT: 'Select Document',
9
- Empty: 'Assentify_Empty',
10
- };
11
-
12
-
13
-
@@ -1,14 +0,0 @@
1
- import { useFocusEffect } from '@react-navigation/native';
2
- import { useCallback } from 'react';
3
- import { BackHandler } from 'react-native';
4
-
5
- export function useBackHandler(handler: () => boolean) {
6
- useFocusEffect(
7
- useCallback(() => {
8
- BackHandler.addEventListener('hardwareBackPress', handler);
9
-
10
- return () =>
11
- BackHandler.removeEventListener('hardwareBackPress', handler);
12
- }, [handler])
13
- );
14
- }
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import { NavigationContainer, type NavigationContainerRef } from '@react-navigation/native';
4
- import { createNativeStackNavigator } from '@react-navigation/native-stack';
5
- import NavigationService from '../helpers/NavigationService';
6
- import { PAGES } from '../helpers/constants';
7
- import SelectDocument from '../screens/SelectDocument';
8
-
9
- const Stack = createNativeStackNavigator();
10
-
11
- const EmptyScreen = () => null;
12
-
13
-
14
-
15
- const AssentifyNavigator = () => {
16
- const navigationRef = React.useRef<NavigationContainerRef<any> | null>(null);
17
-
18
- return (
19
- <NavigationContainer
20
- independent
21
- ref={navigationRef}
22
- onReady={() => {
23
- NavigationService.setTopLevelNavigator(navigationRef.current!);
24
- }}
25
- >
26
- <Stack.Navigator>
27
- <Stack.Screen name={PAGES.SELECT_DOCUMENT} component={SelectDocument} />
28
- </Stack.Navigator>
29
- </NavigationContainer>
30
-
31
- );
32
- };
33
-
34
- export default AssentifyNavigator;
@@ -1,250 +0,0 @@
1
- import { NativeModules,StyleSheet, Text, TouchableOpacity, View, FlatList } from 'react-native';
2
- import React, { useEffect, useState } from 'react';
3
- import { type TemplatesByCountry, type Templates ,type KycDocumentDetails } from '../types';
4
- import { fontPixel, pixelSizeHorizontal, pixelSizeVertical } from '../themes/styling';
5
- import { COLORS } from '../themes';
6
- import BaseIcon from '../components/BaseIcon';
7
- import Page from '../components/Page';
8
- import CloseButton from '../components/CloseButton';
9
- import { DOC_TYPE, PAGES } from '../helpers/constants';
10
- import useGlobalStore from '../useGlobalStore';
11
- import Each from '../components/Each';
12
- import NavigationService from '../helpers/NavigationService';
13
- import { useBackHandler } from '../helpers/useBackHandler';
14
- import { Image } from 'react-native';
15
- import { kycDocumentDetailsSize,bottomSheetModalRef } from '../AssentifyProvider';
16
- import AssentifyWrapper from '../AssentifyWrapper';
17
- import type { CountryCode } from 'react-native-country-picker-modal';
18
-
19
-
20
- type Props = {};
21
-
22
-
23
-
24
- const SelectDocument: React.FC<Props> = () => {
25
- const {
26
- supportedTemplates,
27
- languageCode,
28
- supportedCountries,
29
- preferredCountry,
30
- countryCode,
31
- setCountryCode,
32
- setSupportedTemplates,
33
- setKYCDocumentDetails,
34
- setDocType,
35
- setIsVisible,
36
- } = useGlobalStore();
37
- const [isOpenModal, setIsOpenModal] = useState<boolean>(false);
38
- const [selectedCountry, setSelectedCountry] = useState<TemplatesByCountry | null>(null);
39
- useBackHandler(() => {
40
- onClose();
41
- return false;
42
- });
43
-
44
- const onClose = () => {
45
- setCountryCode(null);
46
- setDocType(null);
47
- setIsVisible(false);
48
- bottomSheetModalRef.current?.dismiss();
49
- };
50
-
51
- const onScanId = (kycDocumentDetailsList?: KycDocumentDetails[]) => {
52
- kycDocumentDetailsSize.current = kycDocumentDetailsList?.length ?? 0;
53
- AssentifyWrapper.startScanIDCard(kycDocumentDetailsList ?? [], languageCode, true);
54
- };
55
-
56
- const onScanPassport = () => {
57
- console.log("ExampleEvents : ", languageCode);
58
- AssentifyWrapper.startScanPassport(languageCode);
59
- };
60
-
61
-
62
- const onSelect = (country: TemplatesByCountry) => {
63
- setCountryCode(country.sourceCountryCode as CountryCode);
64
- setSelectedCountry(country);
65
- setIsOpenModal(false);
66
- };
67
-
68
- const onOpen = () => {
69
- setIsOpenModal(true);
70
- };
71
-
72
- useEffect(() => {
73
- if (supportedCountries) {
74
- const codeToUse = (countryCode ?? '') || supportedCountries[0]?.sourceCountryCode;
75
- const selected = supportedCountries.find(
76
- (item) => item.sourceCountryCode === codeToUse
77
- );
78
- if (selected) {
79
- const templates = selected.templates;
80
- const kycDetails: Templates[] = [];
81
- templates.forEach((item) => {
82
- if (item.kycDocumentDetails && item.kycDocumentDetails.length) {
83
- kycDetails.push(item);
84
- }
85
- });
86
- setSupportedTemplates(kycDetails);
87
- setSelectedCountry(selected);
88
- }
89
- }
90
- }, [countryCode, setSupportedTemplates, supportedCountries]);
91
-
92
- return (
93
- <Page scrollViewStyle={styles.ScrollView} headerLeft={<CloseButton onPress={onClose} />}>
94
- <View style={styles.container}>
95
- <Text style={styles.CardTitle}>Select Document</Text>
96
- {preferredCountry && (
97
- <TouchableOpacity style={styles.DropdownSelect} onPress={onOpen}>
98
- {selectedCountry ? (
99
- <View style={styles.selectedCountryContainer}>
100
- <Image source={{ uri: selectedCountry.flag }} style={[styles.flag, { width: 30, height: undefined, aspectRatio: 1 }]} />
101
- <Text style={styles.DropdownTitle}>{selectedCountry.name}</Text>
102
- </View>
103
- ) : (
104
- <Text style={styles.DropdownTitle}>Select Country</Text>
105
- )}
106
- <BaseIcon name="chevron_down" color={COLORS.secondary800} />
107
- </TouchableOpacity>
108
- )}
109
- </View>
110
- {isOpenModal && (
111
- <View style={styles.dropdownModal}>
112
- <FlatList
113
- data={supportedCountries}
114
- renderItem={({ item }) => (
115
- <TouchableOpacity
116
- style={styles.dropdownItem}
117
- onPress={() => onSelect(item)}
118
- >
119
- <Image source={{ uri: item.flag }} style={styles.flag} />
120
- <Text style={styles.DropdownTitle}>{item.name}</Text>
121
- </TouchableOpacity>
122
- )}
123
- keyExtractor={(item) => item.sourceCountryCode}
124
- />
125
- </View>
126
- )}
127
- <View style={styles.Card}>
128
- <Text style={styles.CardTitle}>Select document type</Text>
129
- <View style={styles.CardContent}>
130
- <TouchableOpacity
131
- style={[styles.CardItem, supportedTemplates?.length ? styles.CardItemBordered : null]}
132
- onPress={() => onScanPassport()}
133
- >
134
- <Text style={styles.CardItemText}>Passport</Text>
135
- <BaseIcon name="chevron_right" color={COLORS.secondary800} />
136
- </TouchableOpacity>
137
- {supportedTemplates && (
138
- <Each
139
- of={supportedTemplates}
140
- render={(item, index) => (
141
- <TouchableOpacity
142
- key={`supported_template_${index}`}
143
- style={[
144
- styles.CardItem,
145
- index !== supportedTemplates.length - 1 ? styles.CardItemBordered : null,
146
- ]}
147
- onPress={() => onScanId(item.kycDocumentDetails)}
148
- >
149
- <Text style={styles.CardItemText}>{item?.kycDocumentType}</Text>
150
- <BaseIcon name="chevron_right" color={COLORS.secondary800} />
151
- </TouchableOpacity>
152
- )}
153
- />
154
- )}
155
- </View>
156
- </View>
157
- </Page>
158
- );
159
- };
160
-
161
- export default SelectDocument;
162
-
163
- const styles = StyleSheet.create({
164
- ScrollView: {
165
- flex: 1,
166
- backgroundColor: '#fff',
167
- paddingHorizontal: pixelSizeHorizontal(16),
168
- },
169
- container: {
170
- marginTop: pixelSizeVertical(40),
171
- },
172
- Card: {
173
- flex: 1,
174
- marginVertical: pixelSizeVertical(16),
175
- },
176
- CardTitle: {
177
- fontSize: fontPixel(14),
178
- fontWeight: '600',
179
- lineHeight: 20,
180
- color: COLORS.secondary1200,
181
- marginBottom: pixelSizeVertical(8),
182
- },
183
- CardContent: {
184
- borderWidth: 1,
185
- borderColor: COLORS.secondary300,
186
- borderRadius: 16,
187
- },
188
- CardItem: {
189
- flexDirection: 'row',
190
- alignItems: 'center',
191
- justifyContent: 'space-between',
192
- paddingLeft: pixelSizeHorizontal(24),
193
- paddingRight: pixelSizeHorizontal(12),
194
- paddingVertical: pixelSizeVertical(16),
195
- },
196
- CardItemBordered: {
197
- borderBottomWidth: 1,
198
- borderBottomColor: COLORS.secondary300,
199
- },
200
- CardItemText: {
201
- fontSize: fontPixel(14),
202
- fontWeight: '600',
203
- lineHeight: 20,
204
- color: COLORS.secondaryBase1,
205
- },
206
- DropdownSelect: {
207
- borderWidth: 1,
208
- borderColor: COLORS.secondary300,
209
- borderRadius: 16,
210
- flexDirection: 'row',
211
- alignItems: 'center',
212
- justifyContent: 'space-between',
213
- paddingVertical: pixelSizeVertical(10),
214
- paddingHorizontal: pixelSizeVertical(16),
215
- },
216
- DropdownTitle: {
217
- fontSize: fontPixel(14),
218
- fontWeight: '500',
219
- lineHeight: 20,
220
- color: COLORS.secondaryBase1,
221
- },
222
- selectedCountryContainer: {
223
- flexDirection: 'row',
224
- alignItems: 'center',
225
- },
226
- flag: {
227
- width: 24,
228
- height: 24,
229
- marginRight: pixelSizeHorizontal(8),
230
- },
231
- dropdownModal: {
232
- backgroundColor: 'white',
233
- borderRadius: 16,
234
- marginTop: pixelSizeVertical(8),
235
- position: 'absolute',
236
- top: 80, // Adjust depending on your layout
237
- left: 16,
238
- right: 16,
239
- maxHeight: 300,
240
- borderWidth: 1,
241
- borderColor: COLORS.secondary300,
242
- zIndex: 1000,
243
- },
244
- dropdownItem: {
245
- flexDirection: 'row',
246
- alignItems: 'center',
247
- paddingVertical: pixelSizeVertical(12),
248
- paddingHorizontal: pixelSizeHorizontal(16),
249
- },
250
- });
@@ -1,16 +0,0 @@
1
- export const COLORS = {
2
- white: '#ffffff',
3
- primaryBase1: '#66023C',
4
-
5
- secondaryBase1: '#44546A',
6
- secondary100: '#F9FAFB',
7
- secondary200: '#EEF1F6',
8
- secondary300: '#DBE0E9',
9
- secondary700: '#808E9E',
10
- secondary800: '#6C7B8E',
11
- secondary1200: '#2C3844',
12
- grey100: '#F9FAFA',
13
- grey300: '#DCDEE1',
14
- grey600: '#9AA0A7',
15
- grey800: '#76797E',
16
- };
@@ -1,53 +0,0 @@
1
- import { Dimensions, PixelRatio, Platform } from 'react-native';
2
-
3
- const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get('window');
4
- // const ratio = PixelRatio.get();
5
-
6
- // Use iPhone5 as base size which is 320 x 568
7
- // const baseWidth = 320;
8
- // const baseHeight = 568;
9
-
10
- // Use iPhone6 as base size which is 375 x 667
11
- const baseWidth = 375;
12
- const baseHeight = 667;
13
-
14
- // const baseWidth = 375;
15
- // const baseHeight = 811;
16
-
17
- const scaleWidth = SCREEN_WIDTH / baseWidth;
18
- const scaleHeight = SCREEN_HEIGHT / baseHeight;
19
- const scale = Math.min(scaleWidth, scaleHeight);
20
-
21
- export const normalize = (
22
- size: number,
23
- based: 'width' | 'height' = 'width'
24
- ) => {
25
- // const newSize = size * scale;
26
- const newSize = based === 'height' ? size * scale : size * scale;
27
- if (Platform.OS === 'ios') {
28
- return Math.round(PixelRatio.roundToNearestPixel(newSize));
29
- } else {
30
- return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2;
31
- }
32
- };
33
-
34
- //for width pixel
35
- export const widthPixel = (size: number) => {
36
- return normalize(size, 'width');
37
- };
38
- //for height pixel
39
- export const heightPixel = (size: number) => {
40
- return normalize(size, 'height');
41
- };
42
- //for font pixel
43
- export const fontPixel = (size: number) => {
44
- return heightPixel(size);
45
- };
46
- //for Margin and Padding vertical pixel
47
- export const pixelSizeVertical = (size: number) => {
48
- return heightPixel(size);
49
- };
50
- //for Margin and Padding horizontal pixel
51
- export const pixelSizeHorizontal = (size: number) => {
52
- return widthPixel(size);
53
- };
@@ -1,65 +0,0 @@
1
- import type {
2
- FaceExtractedModel,
3
- IDExtractedModel,
4
- KycDocumentDetails,
5
- OtherExtractedModel,
6
- PassportExtractedModel,
7
- Templates,
8
- TemplatesByCountry,
9
- } from './types';
10
- import { create } from 'zustand';
11
- import type { CountryCode } from 'react-native-country-picker-modal';
12
- import { type LanguageCode } from './Language';
13
-
14
- type GlobalStoreState = {
15
- countryCode: CountryCode | null;
16
- languageCode: LanguageCode;
17
- preferredCountry: CountryCode[] | string[];
18
- supportedCountries: TemplatesByCountry[];
19
- supportedTemplates: Templates[];
20
- kycDocumentDetails: KycDocumentDetails[] | null;
21
- docType: string | null;
22
- isVisible: boolean;
23
-
24
- setCountryCode: (countryCode: CountryCode | null) => void;
25
- setFlowLanguage: (languageCode: LanguageCode | null) => void;
26
- setPreferredCountry: (preferredCountry: CountryCode[]) => void;
27
- setSupportedCountries: (supportedCountries: TemplatesByCountry[]) => void;
28
- setSupportedTemplates: (supportedTemplates: Templates[]) => void;
29
- setKYCDocumentDetails: (
30
- kycDocumentDetails: KycDocumentDetails[] | null
31
- ) => void;
32
- setDocType: (docType: string | null) => void;
33
- setIsVisible: (isVisible: boolean) => void;
34
- clearGlobalStore: () => void;
35
- };
36
-
37
- const persistState = {
38
- countryCode: '' as CountryCode,
39
- languageCode: '' as LanguageCode,
40
- preferredCountry: [],
41
- supportedCountries: [],
42
- supportedTemplates: [],
43
- kycDocumentDetails: [],
44
- };
45
-
46
- const initialState = {
47
- docType: null,
48
- isVisible: false,
49
- };
50
-
51
- const useGlobalStore = create<GlobalStoreState>()((set) => ({
52
- ...initialState,
53
- ...persistState,
54
- setCountryCode: (countryCode: CountryCode | null) => set({ countryCode: countryCode as any }),
55
- setFlowLanguage: (languageCode: LanguageCode | null) => set({ languageCode: languageCode as any }),
56
- setPreferredCountry: (preferredCountry: CountryCode[]) =>set({ preferredCountry }),
57
- setSupportedCountries: (supportedCountries: TemplatesByCountry[]) => set({ supportedCountries }),
58
- setSupportedTemplates: (supportedTemplates: Templates[]) =>set({ supportedTemplates }),
59
- setKYCDocumentDetails: (kycDocumentDetails: KycDocumentDetails[] | null) =>set({ kycDocumentDetails }),
60
- setDocType: (docType: string | null) => set({ docType }),
61
- setIsVisible: (isVisible: boolean) => set({ isVisible }),
62
- clearGlobalStore: () => set({ ...initialState }),
63
- }));
64
-
65
- export default useGlobalStore;