assentify-sdk-react-native 0.0.2 → 0.0.4
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.
- package/README.md +49 -0
- package/lib/commonjs/AssentifyProvider.js +2 -49
- package/lib/commonjs/AssentifyProvider.js.map +1 -1
- package/lib/commonjs/AssentifyWrapper.js +0 -12
- package/lib/commonjs/AssentifyWrapper.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/AssentifyProvider.js +2 -50
- package/lib/module/AssentifyProvider.js.map +1 -1
- package/lib/module/AssentifyWrapper.js +0 -11
- package/lib/module/AssentifyWrapper.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/example/src/Home.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +0 -2
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +0 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/AssentifyProvider.d.ts +1 -3
- package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +0 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +0 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/AssentifyProvider.d.ts +0 -3
- package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts +0 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +0 -2
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AssentifyProvider.tsx +5 -59
- package/src/AssentifyWrapper.ts +19 -29
- package/src/types.ts +0 -3
- package/lib/commonjs/components/BackButton.js +0 -33
- package/lib/commonjs/components/BackButton.js.map +0 -1
- package/lib/commonjs/components/BaseButton.js +0 -41
- package/lib/commonjs/components/BaseButton.js.map +0 -1
- package/lib/commonjs/components/BaseIcon.js +0 -83
- package/lib/commonjs/components/BaseIcon.js.map +0 -1
- package/lib/commonjs/components/CloseButton.js +0 -33
- package/lib/commonjs/components/CloseButton.js.map +0 -1
- package/lib/commonjs/components/CustomHeader.js +0 -54
- package/lib/commonjs/components/CustomHeader.js.map +0 -1
- package/lib/commonjs/components/Each.js +0 -16
- package/lib/commonjs/components/Each.js.map +0 -1
- package/lib/commonjs/components/Page.js +0 -45
- package/lib/commonjs/components/Page.js.map +0 -1
- package/lib/commonjs/components/icons/arrow-left.js +0 -28
- package/lib/commonjs/components/icons/arrow-left.js.map +0 -1
- package/lib/commonjs/components/icons/big-warning.js +0 -34
- package/lib/commonjs/components/icons/big-warning.js.map +0 -1
- package/lib/commonjs/components/icons/check-success.js +0 -28
- package/lib/commonjs/components/icons/check-success.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-down.js +0 -28
- package/lib/commonjs/components/icons/chevron-down.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-left.js +0 -28
- package/lib/commonjs/components/icons/chevron-left.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-right.js +0 -28
- package/lib/commonjs/components/icons/chevron-right.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-up.js +0 -27
- package/lib/commonjs/components/icons/chevron-up.js.map +0 -1
- package/lib/commonjs/components/icons/close.js +0 -28
- package/lib/commonjs/components/icons/close.js.map +0 -1
- package/lib/commonjs/components/type.js +0 -2
- package/lib/commonjs/components/type.js.map +0 -1
- package/lib/commonjs/helpers/NavigationService.js +0 -80
- package/lib/commonjs/helpers/NavigationService.js.map +0 -1
- package/lib/commonjs/helpers/constants.js +0 -16
- package/lib/commonjs/helpers/constants.js.map +0 -1
- package/lib/commonjs/helpers/useBackHandler.js +0 -16
- package/lib/commonjs/helpers/useBackHandler.js.map +0 -1
- package/lib/commonjs/navigator/index.js +0 -30
- package/lib/commonjs/navigator/index.js.map +0 -1
- package/lib/commonjs/screens/SelectDocument.js +0 -248
- package/lib/commonjs/screens/SelectDocument.js.map +0 -1
- package/lib/commonjs/themes/index.js +0 -22
- package/lib/commonjs/themes/index.js.map +0 -1
- package/lib/commonjs/themes/styling.js +0 -64
- package/lib/commonjs/themes/styling.js.map +0 -1
- package/lib/commonjs/useGlobalStore.js +0 -52
- package/lib/commonjs/useGlobalStore.js.map +0 -1
- package/lib/module/components/BackButton.js +0 -26
- package/lib/module/components/BackButton.js.map +0 -1
- package/lib/module/components/BaseButton.js +0 -34
- package/lib/module/components/BaseButton.js.map +0 -1
- package/lib/module/components/BaseIcon.js +0 -76
- package/lib/module/components/BaseIcon.js.map +0 -1
- package/lib/module/components/CloseButton.js +0 -26
- package/lib/module/components/CloseButton.js.map +0 -1
- package/lib/module/components/CustomHeader.js +0 -47
- package/lib/module/components/CustomHeader.js.map +0 -1
- package/lib/module/components/Each.js +0 -9
- package/lib/module/components/Each.js.map +0 -1
- package/lib/module/components/Page.js +0 -38
- package/lib/module/components/Page.js.map +0 -1
- package/lib/module/components/icons/arrow-left.js +0 -19
- package/lib/module/components/icons/arrow-left.js.map +0 -1
- package/lib/module/components/icons/big-warning.js +0 -25
- package/lib/module/components/icons/big-warning.js.map +0 -1
- package/lib/module/components/icons/check-success.js +0 -19
- package/lib/module/components/icons/check-success.js.map +0 -1
- package/lib/module/components/icons/chevron-down.js +0 -19
- package/lib/module/components/icons/chevron-down.js.map +0 -1
- package/lib/module/components/icons/chevron-left.js +0 -19
- package/lib/module/components/icons/chevron-left.js.map +0 -1
- package/lib/module/components/icons/chevron-right.js +0 -19
- package/lib/module/components/icons/chevron-right.js.map +0 -1
- package/lib/module/components/icons/chevron-up.js +0 -19
- package/lib/module/components/icons/chevron-up.js.map +0 -1
- package/lib/module/components/icons/close.js +0 -19
- package/lib/module/components/icons/close.js.map +0 -1
- package/lib/module/components/type.js +0 -2
- package/lib/module/components/type.js.map +0 -1
- package/lib/module/helpers/NavigationService.js +0 -75
- package/lib/module/helpers/NavigationService.js.map +0 -1
- package/lib/module/helpers/constants.js +0 -10
- package/lib/module/helpers/constants.js.map +0 -1
- package/lib/module/helpers/useBackHandler.js +0 -10
- package/lib/module/helpers/useBackHandler.js.map +0 -1
- package/lib/module/navigator/index.js +0 -23
- package/lib/module/navigator/index.js.map +0 -1
- package/lib/module/screens/SelectDocument.js +0 -240
- package/lib/module/screens/SelectDocument.js.map +0 -1
- package/lib/module/themes/index.js +0 -16
- package/lib/module/themes/index.js.map +0 -1
- package/lib/module/themes/styling.js +0 -52
- package/lib/module/themes/styling.js.map +0 -1
- package/lib/module/useGlobalStore.js +0 -46
- package/lib/module/useGlobalStore.js.map +0 -1
- package/lib/typescript/lib/commonjs/components/BackButton.d.ts +0 -6
- package/lib/typescript/lib/commonjs/components/BackButton.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/BaseButton.d.ts +0 -7
- package/lib/typescript/lib/commonjs/components/BaseButton.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts +0 -29
- package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/CloseButton.d.ts +0 -6
- package/lib/typescript/lib/commonjs/components/CloseButton.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts +0 -9
- package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Each.d.ts +0 -7
- package/lib/typescript/lib/commonjs/components/Each.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Page.d.ts +0 -14
- package/lib/typescript/lib/commonjs/components/Page.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/close.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/close.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/type.d.ts +0 -1
- package/lib/typescript/lib/commonjs/components/type.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts +0 -29
- package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/helpers/constants.d.ts +0 -11
- package/lib/typescript/lib/commonjs/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts +0 -3
- package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/navigator/index.d.ts +0 -4
- package/lib/typescript/lib/commonjs/navigator/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts +0 -4
- package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/themes/index.d.ts +0 -17
- package/lib/typescript/lib/commonjs/themes/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/themes/styling.d.ts +0 -8
- package/lib/typescript/lib/commonjs/themes/styling.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/useGlobalStore.d.ts +0 -5
- package/lib/typescript/lib/commonjs/useGlobalStore.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/BackButton.d.ts +0 -7
- package/lib/typescript/lib/module/components/BackButton.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/BaseButton.d.ts +0 -8
- package/lib/typescript/lib/module/components/BaseButton.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/BaseIcon.d.ts +0 -29
- package/lib/typescript/lib/module/components/BaseIcon.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/CloseButton.d.ts +0 -7
- package/lib/typescript/lib/module/components/CloseButton.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/CustomHeader.d.ts +0 -10
- package/lib/typescript/lib/module/components/CustomHeader.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Each.d.ts +0 -7
- package/lib/typescript/lib/module/components/Each.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Page.d.ts +0 -15
- package/lib/typescript/lib/module/components/Page.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/arrow-left.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/arrow-left.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/big-warning.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/big-warning.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/check-success.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/check-success.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-down.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-down.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-left.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-left.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-right.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-right.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-up.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-up.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/close.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/close.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/type.d.ts +0 -1
- package/lib/typescript/lib/module/components/type.d.ts.map +0 -1
- package/lib/typescript/lib/module/helpers/NavigationService.d.ts +0 -28
- package/lib/typescript/lib/module/helpers/NavigationService.d.ts.map +0 -1
- package/lib/typescript/lib/module/helpers/constants.d.ts +0 -10
- package/lib/typescript/lib/module/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/helpers/useBackHandler.d.ts +0 -2
- package/lib/typescript/lib/module/helpers/useBackHandler.d.ts.map +0 -1
- package/lib/typescript/lib/module/navigator/index.d.ts +0 -4
- package/lib/typescript/lib/module/navigator/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/screens/SelectDocument.d.ts +0 -4
- package/lib/typescript/lib/module/screens/SelectDocument.d.ts.map +0 -1
- package/lib/typescript/lib/module/themes/index.d.ts +0 -16
- package/lib/typescript/lib/module/themes/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/themes/styling.d.ts +0 -7
- package/lib/typescript/lib/module/themes/styling.d.ts.map +0 -1
- package/lib/typescript/lib/module/useGlobalStore.d.ts +0 -3
- package/lib/typescript/lib/module/useGlobalStore.d.ts.map +0 -1
- package/lib/typescript/src/components/BackButton.d.ts +0 -7
- package/lib/typescript/src/components/BackButton.d.ts.map +0 -1
- package/lib/typescript/src/components/BaseButton.d.ts +0 -8
- package/lib/typescript/src/components/BaseButton.d.ts.map +0 -1
- package/lib/typescript/src/components/BaseIcon.d.ts +0 -45
- package/lib/typescript/src/components/BaseIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/CloseButton.d.ts +0 -7
- package/lib/typescript/src/components/CloseButton.d.ts.map +0 -1
- package/lib/typescript/src/components/CustomHeader.d.ts +0 -12
- package/lib/typescript/src/components/CustomHeader.d.ts.map +0 -1
- package/lib/typescript/src/components/Each.d.ts +0 -8
- package/lib/typescript/src/components/Each.d.ts.map +0 -1
- package/lib/typescript/src/components/Page.d.ts +0 -17
- package/lib/typescript/src/components/Page.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/src/components/icons/arrow-left.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/big-warning.d.ts +0 -4
- package/lib/typescript/src/components/icons/big-warning.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/check-success.d.ts +0 -4
- package/lib/typescript/src/components/icons/check-success.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-down.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-down.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-left.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-left.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-right.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-right.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-up.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-up.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/close.d.ts +0 -4
- package/lib/typescript/src/components/icons/close.d.ts.map +0 -1
- package/lib/typescript/src/components/type.d.ts +0 -3
- package/lib/typescript/src/components/type.d.ts.map +0 -1
- package/lib/typescript/src/helpers/NavigationService.d.ts +0 -29
- package/lib/typescript/src/helpers/NavigationService.d.ts.map +0 -1
- package/lib/typescript/src/helpers/constants.d.ts +0 -10
- package/lib/typescript/src/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/src/helpers/useBackHandler.d.ts +0 -2
- package/lib/typescript/src/helpers/useBackHandler.d.ts.map +0 -1
- package/lib/typescript/src/navigator/index.d.ts +0 -4
- package/lib/typescript/src/navigator/index.d.ts.map +0 -1
- package/lib/typescript/src/screens/SelectDocument.d.ts +0 -5
- package/lib/typescript/src/screens/SelectDocument.d.ts.map +0 -1
- package/lib/typescript/src/themes/index.d.ts +0 -16
- package/lib/typescript/src/themes/index.d.ts.map +0 -1
- package/lib/typescript/src/themes/styling.d.ts +0 -7
- package/lib/typescript/src/themes/styling.d.ts.map +0 -1
- package/lib/typescript/src/useGlobalStore.d.ts +0 -25
- package/lib/typescript/src/useGlobalStore.d.ts.map +0 -1
- package/src/components/BackButton.tsx +0 -28
- package/src/components/BaseButton.tsx +0 -44
- package/src/components/BaseIcon.tsx +0 -96
- package/src/components/CloseButton.tsx +0 -28
- package/src/components/CustomHeader.tsx +0 -58
- package/src/components/Each.tsx +0 -12
- package/src/components/Page.tsx +0 -64
- package/src/components/icons/arrow-left.tsx +0 -22
- package/src/components/icons/big-warning.tsx +0 -29
- package/src/components/icons/check-success.tsx +0 -22
- package/src/components/icons/chevron-down.tsx +0 -22
- package/src/components/icons/chevron-left.tsx +0 -22
- package/src/components/icons/chevron-right.tsx +0 -22
- package/src/components/icons/chevron-up.tsx +0 -22
- package/src/components/icons/close.tsx +0 -22
- package/src/components/type.ts +0 -11
- package/src/helpers/NavigationService.ts +0 -89
- package/src/helpers/constants.ts +0 -13
- package/src/helpers/useBackHandler.ts +0 -14
- package/src/navigator/index.tsx +0 -34
- package/src/screens/SelectDocument.tsx +0 -250
- package/src/themes/index.ts +0 -16
- package/src/themes/styling.ts +0 -53
- package/src/useGlobalStore.ts +0 -65
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-left.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/chevron-left.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAiB5B,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-right.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/chevron-right.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAiB7B,CAAC;AACF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-up.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/chevron-up.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAiB1B,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/close.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAiBtB,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/components/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,cAAc,GACd,eAAe,GACf,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,aAAa,GACb,eAAe,CAAC;AAEpB,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type NavigationContainerRef } from '@react-navigation/native';
|
|
2
|
-
declare function setTopLevelNavigator(navigatorRef?: NavigationContainerRef<any>): void;
|
|
3
|
-
declare function navigate(routeName: string, params?: any): void;
|
|
4
|
-
declare function replace(routeName: string, params?: any): void;
|
|
5
|
-
declare function push(routeName: string, params?: any): void;
|
|
6
|
-
declare function pop(number?: number): void;
|
|
7
|
-
declare function popToTop(): void;
|
|
8
|
-
declare function goBack(): void;
|
|
9
|
-
declare function canGoBack(): boolean;
|
|
10
|
-
declare function getNavigator(): NavigationContainerRef<any>;
|
|
11
|
-
declare function reset(routeName: string): void;
|
|
12
|
-
declare function setCurrentRoute(route: string): void;
|
|
13
|
-
declare function getCurrentRoute(): string;
|
|
14
|
-
declare const _default: {
|
|
15
|
-
replace: typeof replace;
|
|
16
|
-
push: typeof push;
|
|
17
|
-
pop: typeof pop;
|
|
18
|
-
setTopLevelNavigator: typeof setTopLevelNavigator;
|
|
19
|
-
setCurrentRoute: typeof setCurrentRoute;
|
|
20
|
-
getCurrentRoute: typeof getCurrentRoute;
|
|
21
|
-
getNavigator: typeof getNavigator;
|
|
22
|
-
navigate: typeof navigate;
|
|
23
|
-
reset: typeof reset;
|
|
24
|
-
popToTop: typeof popToTop;
|
|
25
|
-
goBack: typeof goBack;
|
|
26
|
-
canGoBack: typeof canGoBack;
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
29
|
-
//# sourceMappingURL=NavigationService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationService.d.ts","sourceRoot":"","sources":["../../../../src/helpers/NavigationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,0BAA0B,CAAC;AAKlC,iBAAS,oBAAoB,CAAC,YAAY,CAAC,EAAE,sBAAsB,CAAC,GAAG,CAAC,QAEvE;AAED,iBAAS,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,QAEhD;AAED,iBAAS,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,QAE/C;AAED,iBAAS,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,QAE5C;AAED,iBAAS,GAAG,CAAC,MAAM,SAAI,QAEtB;AAED,iBAAS,QAAQ,SAEhB;AAED,iBAAS,MAAM,SAEd;AAED,iBAAS,SAAS,YAEjB;AAED,iBAAS,YAAY,gCAEpB;AAED,iBAAS,KAAK,CAAC,SAAS,EAAE,MAAM,QAa/B;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,QAErC;AAED,iBAAS,eAAe,WAOvB;;;;;;;;;;;;;;;AAID,wBAaE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/helpers/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,KAAK;;;CAGjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBackHandler.d.ts","sourceRoot":"","sources":["../../../../src/helpers/useBackHandler.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,OAAO,QASpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/navigator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,kBAAkB,yBAiBvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDocument.d.ts","sourceRoot":"","sources":["../../../../src/screens/SelectDocument.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,KAAK,KAAK,GAAG,EAAE,CAAC;AAIhB,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuInC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const COLORS: {
|
|
2
|
-
white: string;
|
|
3
|
-
primaryBase1: string;
|
|
4
|
-
secondaryBase1: string;
|
|
5
|
-
secondary100: string;
|
|
6
|
-
secondary200: string;
|
|
7
|
-
secondary300: string;
|
|
8
|
-
secondary700: string;
|
|
9
|
-
secondary800: string;
|
|
10
|
-
secondary1200: string;
|
|
11
|
-
grey100: string;
|
|
12
|
-
grey300: string;
|
|
13
|
-
grey600: string;
|
|
14
|
-
grey800: string;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/themes/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAelB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const normalize: (size: number, based?: "width" | "height") => number;
|
|
2
|
-
export declare const widthPixel: (size: number) => number;
|
|
3
|
-
export declare const heightPixel: (size: number) => number;
|
|
4
|
-
export declare const fontPixel: (size: number) => number;
|
|
5
|
-
export declare const pixelSizeVertical: (size: number) => number;
|
|
6
|
-
export declare const pixelSizeHorizontal: (size: number) => number;
|
|
7
|
-
//# sourceMappingURL=styling.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styling.d.ts","sourceRoot":"","sources":["../../../../src/themes/styling.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,SAAS,SACd,MAAM,UACL,OAAO,GAAG,QAAQ,WAS1B,CAAC;AAGF,eAAO,MAAM,UAAU,SAAU,MAAM,WAEtC,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,MAAM,WAEvC,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,MAAM,WAErC,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,MAAM,WAE7C,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,MAAM,WAE/C,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { KycDocumentDetails, Templates, TemplatesByCountry } from './types';
|
|
2
|
-
import type { CountryCode } from 'react-native-country-picker-modal';
|
|
3
|
-
import { type LanguageCode } from './Language';
|
|
4
|
-
type GlobalStoreState = {
|
|
5
|
-
countryCode: CountryCode | null;
|
|
6
|
-
languageCode: LanguageCode;
|
|
7
|
-
preferredCountry: CountryCode[] | string[];
|
|
8
|
-
supportedCountries: TemplatesByCountry[];
|
|
9
|
-
supportedTemplates: Templates[];
|
|
10
|
-
kycDocumentDetails: KycDocumentDetails[] | null;
|
|
11
|
-
docType: string | null;
|
|
12
|
-
isVisible: boolean;
|
|
13
|
-
setCountryCode: (countryCode: CountryCode | null) => void;
|
|
14
|
-
setFlowLanguage: (languageCode: LanguageCode | null) => void;
|
|
15
|
-
setPreferredCountry: (preferredCountry: CountryCode[]) => void;
|
|
16
|
-
setSupportedCountries: (supportedCountries: TemplatesByCountry[]) => void;
|
|
17
|
-
setSupportedTemplates: (supportedTemplates: Templates[]) => void;
|
|
18
|
-
setKYCDocumentDetails: (kycDocumentDetails: KycDocumentDetails[] | null) => void;
|
|
19
|
-
setDocType: (docType: string | null) => void;
|
|
20
|
-
setIsVisible: (isVisible: boolean) => void;
|
|
21
|
-
clearGlobalStore: () => void;
|
|
22
|
-
};
|
|
23
|
-
declare const useGlobalStore: import("zustand").UseBoundStore<import("zustand").StoreApi<GlobalStoreState>>;
|
|
24
|
-
export default useGlobalStore;
|
|
25
|
-
//# sourceMappingURL=useGlobalStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGlobalStore.d.ts","sourceRoot":"","sources":["../../../src/useGlobalStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,kBAAkB,EAGlB,SAAS,EACT,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChC,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAChD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IAEnB,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1D,eAAe,EAAE,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7D,mBAAmB,EAAE,CAAC,gBAAgB,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC/D,qBAAqB,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;IAC1E,qBAAqB,EAAE,CAAC,kBAAkB,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IACjE,qBAAqB,EAAE,CACrB,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,IAAI,KAC5C,IAAI,CAAC;IACV,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAgBF,QAAA,MAAM,cAAc,+EAYjB,CAAC;AAEJ,eAAe,cAAc,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { pixelSizeHorizontal } from '../themes/styling';
|
|
4
|
-
import { COLORS } from '../themes';
|
|
5
|
-
import BaseIcon from './BaseIcon';
|
|
6
|
-
|
|
7
|
-
type Props = {
|
|
8
|
-
onPress?: () => void;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const BackButton: React.FC<Props> = ({ onPress }) => {
|
|
12
|
-
return (
|
|
13
|
-
<TouchableOpacity style={styles.BackButtons} onPress={onPress}>
|
|
14
|
-
<BaseIcon name="arrow_left" color={COLORS.secondaryBase1} />
|
|
15
|
-
</TouchableOpacity>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default BackButton;
|
|
20
|
-
|
|
21
|
-
const styles = StyleSheet.create({
|
|
22
|
-
BackButtons: {
|
|
23
|
-
padding: 6,
|
|
24
|
-
justifyContent: 'center',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
marginLeft: pixelSizeHorizontal(16),
|
|
27
|
-
},
|
|
28
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, Text, TouchableOpacity } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { COLORS } from '../themes';
|
|
4
|
-
import {
|
|
5
|
-
fontPixel,
|
|
6
|
-
pixelSizeHorizontal,
|
|
7
|
-
pixelSizeVertical,
|
|
8
|
-
} from '../themes/styling';
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
label: string;
|
|
12
|
-
onPress?: () => void;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const BaseButton: React.FC<Props> = ({ label, onPress }) => {
|
|
16
|
-
return (
|
|
17
|
-
<TouchableOpacity
|
|
18
|
-
activeOpacity={0.7}
|
|
19
|
-
style={styles.BaseButton}
|
|
20
|
-
onPress={onPress}
|
|
21
|
-
>
|
|
22
|
-
<Text style={styles.labelStyle}>{label}</Text>
|
|
23
|
-
</TouchableOpacity>
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default BaseButton;
|
|
28
|
-
|
|
29
|
-
const styles = StyleSheet.create({
|
|
30
|
-
BaseButton: {
|
|
31
|
-
backgroundColor: "#f5a103",
|
|
32
|
-
paddingVertical: pixelSizeVertical(12),
|
|
33
|
-
paddingHorizontal: pixelSizeHorizontal(16),
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
borderRadius: 48,
|
|
37
|
-
},
|
|
38
|
-
labelStyle: {
|
|
39
|
-
fontSize: fontPixel(16),
|
|
40
|
-
fontWeight: '500',
|
|
41
|
-
lineHeight: 22,
|
|
42
|
-
color: COLORS.white,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { ThemeIcon } from './type';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import ArrowLeftIcon from './icons/arrow-left';
|
|
5
|
-
import ChevronDownIcon from './icons/chevron-down';
|
|
6
|
-
import ChevronLeftIcon from './icons/chevron-left';
|
|
7
|
-
import ChevronRightIcon from './icons/chevron-right';
|
|
8
|
-
import ChevronUpIcon from './icons/chevron-up';
|
|
9
|
-
import CloseIcon from './icons/close';
|
|
10
|
-
import BigWarningIcon from './icons/big-warning';
|
|
11
|
-
import CheckSuccessIcon from './icons/check-success';
|
|
12
|
-
|
|
13
|
-
export type Props = {
|
|
14
|
-
/**
|
|
15
|
-
* Name of the icon
|
|
16
|
-
*/
|
|
17
|
-
name: ThemeIcon;
|
|
18
|
-
/**
|
|
19
|
-
* Size of the icon.
|
|
20
|
-
*/
|
|
21
|
-
size?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Custom icon's text color.
|
|
24
|
-
*/
|
|
25
|
-
color?: string;
|
|
26
|
-
/**
|
|
27
|
-
* @optional
|
|
28
|
-
* Style for icon
|
|
29
|
-
*/
|
|
30
|
-
style?: StyleProp<ViewStyle>;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* <div class="screenshots">
|
|
35
|
-
* <figure>
|
|
36
|
-
* <img class="small" src="screenshots/icon-1.png" />
|
|
37
|
-
* <figcaption>Default icon</figcaption>
|
|
38
|
-
* </figure>
|
|
39
|
-
* <figure>
|
|
40
|
-
* <img class="small" src="screenshots/icon-2.png" />
|
|
41
|
-
* <figcaption>Custom icon colors</figcaption>
|
|
42
|
-
* </figure>
|
|
43
|
-
* <figure>
|
|
44
|
-
* <img class="small" src="screenshots/icon-3.png" />
|
|
45
|
-
* <figcaption>Custom icon sizes</figcaption>
|
|
46
|
-
* </figure>
|
|
47
|
-
* </div>
|
|
48
|
-
*
|
|
49
|
-
* ## Usage
|
|
50
|
-
* ```js
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
const BaseIcon = ({ name, color, size, ...rest }: Props) => {
|
|
54
|
-
const DEFAULT_SIZE = 24;
|
|
55
|
-
|
|
56
|
-
const iconHeight = size || DEFAULT_SIZE;
|
|
57
|
-
const iconWidth = size || DEFAULT_SIZE;
|
|
58
|
-
|
|
59
|
-
const getProps = () => ({
|
|
60
|
-
color: color,
|
|
61
|
-
width: iconWidth,
|
|
62
|
-
height: iconHeight,
|
|
63
|
-
...rest,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
switch (name) {
|
|
67
|
-
case 'chevron_down':
|
|
68
|
-
//@ts-ignore
|
|
69
|
-
return <ChevronDownIcon {...getProps()} />;
|
|
70
|
-
case 'chevron_left':
|
|
71
|
-
//@ts-ignore
|
|
72
|
-
return <ChevronLeftIcon {...getProps()} />;
|
|
73
|
-
case 'chevron_right':
|
|
74
|
-
//@ts-ignore
|
|
75
|
-
return <ChevronRightIcon {...getProps()} />;
|
|
76
|
-
case 'chevron_up':
|
|
77
|
-
//@ts-ignore
|
|
78
|
-
return <ChevronUpIcon {...getProps()} />;
|
|
79
|
-
case 'close':
|
|
80
|
-
//@ts-ignore
|
|
81
|
-
return <CloseIcon {...getProps()} />;
|
|
82
|
-
case 'arrow_left':
|
|
83
|
-
//@ts-ignore
|
|
84
|
-
return <ArrowLeftIcon {...getProps()} />;
|
|
85
|
-
case 'big_warning':
|
|
86
|
-
//@ts-ignore
|
|
87
|
-
return <BigWarningIcon {...getProps()} />;
|
|
88
|
-
case 'check_success':
|
|
89
|
-
//@ts-ignore
|
|
90
|
-
return <CheckSuccessIcon {...getProps()} />;
|
|
91
|
-
default:
|
|
92
|
-
return null;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export default BaseIcon;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { pixelSizeHorizontal } from '../themes/styling';
|
|
4
|
-
import { COLORS } from '../themes';
|
|
5
|
-
import BaseIcon from './BaseIcon';
|
|
6
|
-
|
|
7
|
-
type Props = {
|
|
8
|
-
onPress?: () => void;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const CloseButton: React.FC<Props> = ({ onPress }) => {
|
|
12
|
-
return (
|
|
13
|
-
<TouchableOpacity style={styles.BackButtons} onPress={onPress}>
|
|
14
|
-
<BaseIcon name="close" color={COLORS.secondaryBase1} />
|
|
15
|
-
</TouchableOpacity>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default CloseButton;
|
|
20
|
-
|
|
21
|
-
const styles = StyleSheet.create({
|
|
22
|
-
BackButtons: {
|
|
23
|
-
padding: 6,
|
|
24
|
-
justifyContent: 'center',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
marginLeft: pixelSizeHorizontal(16),
|
|
27
|
-
},
|
|
28
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { pixelSizeVertical } from '../themes/styling';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { View, StyleSheet, SafeAreaView } from 'react-native';
|
|
4
|
-
import type { ViewStyle, StyleProp } from 'react-native';
|
|
5
|
-
|
|
6
|
-
type HeaderSubComponent = React.ReactElement<{}> | React.ReactNode;
|
|
7
|
-
|
|
8
|
-
type CustomHeaderProps = {
|
|
9
|
-
headerLeft?: HeaderSubComponent;
|
|
10
|
-
headerRight?: HeaderSubComponent;
|
|
11
|
-
headerTitle?: HeaderSubComponent;
|
|
12
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const CustomHeader: React.FC<CustomHeaderProps> = ({
|
|
16
|
-
headerLeft,
|
|
17
|
-
headerRight,
|
|
18
|
-
headerTitle,
|
|
19
|
-
containerStyle,
|
|
20
|
-
}) => {
|
|
21
|
-
return (
|
|
22
|
-
<SafeAreaView style={[styles.ViewHeader, containerStyle]}>
|
|
23
|
-
<View style={styles.headerLeft}>{headerLeft}</View>
|
|
24
|
-
<View style={styles.headerTitle}>{headerTitle}</View>
|
|
25
|
-
<View style={styles.headerRight}>{headerRight}</View>
|
|
26
|
-
</SafeAreaView>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default CustomHeader;
|
|
31
|
-
|
|
32
|
-
const styles = StyleSheet.create({
|
|
33
|
-
ViewHeader: {
|
|
34
|
-
flexDirection: 'row',
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
|
|
37
|
-
marginTop: pixelSizeVertical(15),
|
|
38
|
-
width: '100%',
|
|
39
|
-
},
|
|
40
|
-
headerLeft: {
|
|
41
|
-
// flex: 1,
|
|
42
|
-
minWidth: 50,
|
|
43
|
-
justifyContent: 'center',
|
|
44
|
-
alignItems: 'flex-start',
|
|
45
|
-
},
|
|
46
|
-
headerRight: {
|
|
47
|
-
// flex: 1,
|
|
48
|
-
minWidth: 50,
|
|
49
|
-
justifyContent: 'center',
|
|
50
|
-
alignItems: 'flex-end',
|
|
51
|
-
},
|
|
52
|
-
headerTitle: {
|
|
53
|
-
flex: 1,
|
|
54
|
-
justifyContent: 'center',
|
|
55
|
-
alignItems: 'center',
|
|
56
|
-
width: 'auto',
|
|
57
|
-
},
|
|
58
|
-
});
|
package/src/components/Each.tsx
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface EachProps {
|
|
4
|
-
render: (item: any, index: number) => React.ReactNode;
|
|
5
|
-
of?: any[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const Each: React.FC<EachProps> = ({ render, of }) => {
|
|
9
|
-
return React.Children.toArray(of?.map((item, index) => render(item, index)));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default Each;
|
package/src/components/Page.tsx
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ScrollView, StyleSheet, SafeAreaView } from 'react-native';
|
|
2
|
-
import type { ViewStyle, StyleProp } from 'react-native';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import CustomHeader from './CustomHeader';
|
|
5
|
-
import { COLORS } from '../themes';
|
|
6
|
-
|
|
7
|
-
type HeaderSubComponent = React.ReactElement<{}> | React.ReactNode;
|
|
8
|
-
|
|
9
|
-
type PageProps = {
|
|
10
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
11
|
-
scrollViewStyle?: StyleProp<ViewStyle>;
|
|
12
|
-
scrollViewContentContainerStyle?: StyleProp<ViewStyle>;
|
|
13
|
-
headerContainerStyle?: StyleProp<ViewStyle>;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
footerComponent?: React.ReactNode;
|
|
16
|
-
headerLeft?: HeaderSubComponent;
|
|
17
|
-
headerRight?: HeaderSubComponent;
|
|
18
|
-
headerTitle?: HeaderSubComponent;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const Page: React.FC<PageProps> = ({
|
|
22
|
-
containerStyle,
|
|
23
|
-
scrollViewStyle,
|
|
24
|
-
scrollViewContentContainerStyle,
|
|
25
|
-
children,
|
|
26
|
-
footerComponent,
|
|
27
|
-
headerContainerStyle,
|
|
28
|
-
headerLeft,
|
|
29
|
-
headerRight,
|
|
30
|
-
headerTitle,
|
|
31
|
-
}) => {
|
|
32
|
-
return (
|
|
33
|
-
<SafeAreaView style={[styles.container, containerStyle]}>
|
|
34
|
-
<CustomHeader
|
|
35
|
-
headerLeft={headerLeft}
|
|
36
|
-
headerRight={headerRight}
|
|
37
|
-
headerTitle={headerTitle}
|
|
38
|
-
containerStyle={headerContainerStyle}
|
|
39
|
-
/>
|
|
40
|
-
<ScrollView
|
|
41
|
-
style={scrollViewStyle}
|
|
42
|
-
contentContainerStyle={[
|
|
43
|
-
styles.ScrollViewContainer,
|
|
44
|
-
scrollViewContentContainerStyle,
|
|
45
|
-
]}
|
|
46
|
-
>
|
|
47
|
-
{children}
|
|
48
|
-
</ScrollView>
|
|
49
|
-
{footerComponent}
|
|
50
|
-
</SafeAreaView>
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export default Page;
|
|
55
|
-
|
|
56
|
-
const styles = StyleSheet.create({
|
|
57
|
-
container: {
|
|
58
|
-
flex: 1,
|
|
59
|
-
backgroundColor: COLORS.white,
|
|
60
|
-
},
|
|
61
|
-
ScrollViewContainer: {
|
|
62
|
-
flexGrow: 1,
|
|
63
|
-
},
|
|
64
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
3
|
-
|
|
4
|
-
const ArrowLeftIcon: 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="M12.5303 5.46967C12.8232 5.76256 12.8232 6.23744 12.5303 6.53033L7.81066 11.25H18.5C18.9142 11.25 19.25 11.5858 19.25 12C19.25 12.4142 18.9142 12.75 18.5 12.75H7.81066L12.5303 17.4697C12.8232 17.7626 12.8232 18.2374 12.5303 18.5303C12.2374 18.8232 11.7626 18.8232 11.4697 18.5303L5.46967 12.5303C5.17678 12.2374 5.17678 11.7626 5.46967 11.4697L11.4697 5.46967C11.7626 5.17678 12.2374 5.17678 12.5303 5.46967Z"
|
|
18
|
-
fill={props.color}
|
|
19
|
-
/>
|
|
20
|
-
</Svg>
|
|
21
|
-
);
|
|
22
|
-
export default ArrowLeftIcon;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
3
|
-
|
|
4
|
-
const BigWarningIcon: React.FC = (props: SvgProps) => (
|
|
5
|
-
<Svg
|
|
6
|
-
width={81}
|
|
7
|
-
height={80}
|
|
8
|
-
viewBox="0 0 81 80"
|
|
9
|
-
fill="none"
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
{...props}
|
|
13
|
-
>
|
|
14
|
-
<Path
|
|
15
|
-
d="M40.5 29.9999V43.3333M67.31 69.9999H13.69C8.5633 69.9999 5.35663 64.4533 7.90996 60.0099L34.72 13.3833C37.2866 8.9266 43.7166 8.9266 46.28 13.3833L73.09 60.0099C75.6433 64.4533 72.4333 69.9999 67.31 69.9999Z"
|
|
16
|
-
stroke="#DB7742"
|
|
17
|
-
strokeWidth={3}
|
|
18
|
-
strokeLinecap="round"
|
|
19
|
-
/>
|
|
20
|
-
<Path
|
|
21
|
-
d="M40.5 56.7L40.5333 56.6633"
|
|
22
|
-
stroke="#DB7742"
|
|
23
|
-
strokeWidth={3}
|
|
24
|
-
strokeLinecap="round"
|
|
25
|
-
strokeLinejoin="round"
|
|
26
|
-
/>
|
|
27
|
-
</Svg>
|
|
28
|
-
);
|
|
29
|
-
export default BigWarningIcon;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
3
|
-
|
|
4
|
-
const CheckSuccessIcon: React.FC = (props: SvgProps) => (
|
|
5
|
-
<Svg
|
|
6
|
-
width={25}
|
|
7
|
-
height={24}
|
|
8
|
-
viewBox="0 0 25 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="M1.75 12C1.75 6.06279 6.56279 1.25 12.5 1.25C18.4372 1.25 23.25 6.06279 23.25 12C23.25 17.9372 18.4372 22.75 12.5 22.75C6.56279 22.75 1.75 17.9372 1.75 12ZM12.5 2.75C7.39121 2.75 3.25 6.89121 3.25 12C3.25 17.1088 7.39121 21.25 12.5 21.25C17.6088 21.25 21.75 17.1088 21.75 12C21.75 6.89121 17.6088 2.75 12.5 2.75ZM18.0303 7.96967C18.3232 8.26256 18.3232 8.73744 18.0303 9.03033L11.0303 16.0303C10.7374 16.3232 10.2626 16.3232 9.96967 16.0303L6.96967 13.0303C6.67678 12.7374 6.67678 12.2626 6.96967 11.9697C7.26256 11.6768 7.73744 11.6768 8.03033 11.9697L10.5 14.4393L16.9697 7.96967C17.2626 7.67678 17.7374 7.67678 18.0303 7.96967Z"
|
|
18
|
-
fill="#6BA784"
|
|
19
|
-
/>
|
|
20
|
-
</Svg>
|
|
21
|
-
);
|
|
22
|
-
export default CheckSuccessIcon;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
3
|
-
|
|
4
|
-
const ChevronDownIcon: 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="M5.46967 8.46967C5.76256 8.17678 6.23744 8.17678 6.53033 8.46967L12 13.9393L17.4697 8.46967C17.7626 8.17678 18.2374 8.17678 18.5303 8.46967C18.8232 8.76256 18.8232 9.23744 18.5303 9.53033L12.5303 15.5303C12.2374 15.8232 11.7626 15.8232 11.4697 15.5303L5.46967 9.53033C5.17678 9.23744 5.17678 8.76256 5.46967 8.46967Z"
|
|
18
|
-
fill={props.color}
|
|
19
|
-
/>
|
|
20
|
-
</Svg>
|
|
21
|
-
);
|
|
22
|
-
export default ChevronDownIcon;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Svg, { Path, type SvgProps } from 'react-native-svg';
|
|
3
|
-
|
|
4
|
-
const ChevronLeftIcon: 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="M15.5303 5.46967C15.8232 5.76256 15.8232 6.23744 15.5303 6.53033L10.0607 12L15.5303 17.4697C15.8232 17.7626 15.8232 18.2374 15.5303 18.5303C15.2374 18.8232 14.7626 18.8232 14.4697 18.5303L8.46967 12.5303C8.17678 12.2374 8.17678 11.7626 8.46967 11.4697L14.4697 5.46967C14.7626 5.17678 15.2374 5.17678 15.5303 5.46967Z"
|
|
18
|
-
fill={props.color}
|
|
19
|
-
/>
|
|
20
|
-
</Svg>
|
|
21
|
-
);
|
|
22
|
-
export default ChevronLeftIcon;
|