@oxyhq/services 5.11.10 → 5.11.11
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/lib/commonjs/ui/components/AnimationExample.js +1 -1
- package/lib/commonjs/ui/components/AnimationExample.js.map +1 -1
- package/lib/commonjs/ui/components/Header.js +2 -2
- package/lib/commonjs/ui/components/Header.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/StepBasedScreen.README.md +337 -0
- package/lib/commonjs/ui/components/StepBasedScreen.js +361 -0
- package/lib/commonjs/ui/components/StepBasedScreen.js.map +1 -0
- package/lib/commonjs/ui/components/icon/OxyIcon.js +3 -3
- package/lib/commonjs/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js +1 -1
- package/lib/commonjs/ui/components/internal/PinInput.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +7 -7
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +55 -55
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js +87 -219
- package/lib/commonjs/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignInScreen.js +138 -235
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +139 -742
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js +3 -3
- package/lib/commonjs/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js +2 -2
- package/lib/commonjs/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js +110 -0
- package/lib/commonjs/ui/screens/steps/RecoverRequestStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js +138 -0
- package/lib/commonjs/ui/screens/steps/RecoverSuccessStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js +141 -0
- package/lib/commonjs/ui/screens/steps/RecoverVerifyStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js +165 -0
- package/lib/commonjs/ui/screens/steps/SignInPasswordStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js +150 -0
- package/lib/commonjs/ui/screens/steps/SignInUsernameStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js +171 -0
- package/lib/commonjs/ui/screens/steps/SignUpIdentityStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js +163 -0
- package/lib/commonjs/ui/screens/steps/SignUpSecurityStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js +170 -0
- package/lib/commonjs/ui/screens/steps/SignUpSummaryStep.js.map +1 -0
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js +72 -0
- package/lib/commonjs/ui/screens/steps/SignUpWelcomeStep.js.map +1 -0
- package/lib/module/ui/components/AnimationExample.js +1 -1
- package/lib/module/ui/components/AnimationExample.js.map +1 -1
- package/lib/module/ui/components/Header.js +2 -2
- package/lib/module/ui/components/Header.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/StepBasedScreen.README.md +337 -0
- package/lib/module/ui/components/StepBasedScreen.js +356 -0
- package/lib/module/ui/components/StepBasedScreen.js.map +1 -0
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -1
- package/lib/module/ui/components/icon/OxyIcon.js +3 -3
- package/lib/module/ui/components/icon/OxyIcon.js.map +1 -1
- package/lib/module/ui/components/internal/PinInput.js +1 -1
- package/lib/module/ui/components/internal/PinInput.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +7 -7
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +55 -55
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/RecoverAccountScreen.js +91 -222
- package/lib/module/ui/screens/RecoverAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +140 -237
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/SignUpScreen.js +141 -743
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInPasswordStep.js +3 -3
- package/lib/module/ui/screens/internal/SignInPasswordStep.js.map +1 -1
- package/lib/module/ui/screens/internal/SignInUsernameStep.js +2 -2
- package/lib/module/ui/screens/internal/SignInUsernameStep.js.map +1 -1
- package/lib/module/ui/screens/steps/RecoverRequestStep.js +105 -0
- package/lib/module/ui/screens/steps/RecoverRequestStep.js.map +1 -0
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js +133 -0
- package/lib/module/ui/screens/steps/RecoverSuccessStep.js.map +1 -0
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js +136 -0
- package/lib/module/ui/screens/steps/RecoverVerifyStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignInPasswordStep.js +160 -0
- package/lib/module/ui/screens/steps/SignInPasswordStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignInUsernameStep.js +145 -0
- package/lib/module/ui/screens/steps/SignInUsernameStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js +166 -0
- package/lib/module/ui/screens/steps/SignUpIdentityStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js +158 -0
- package/lib/module/ui/screens/steps/SignUpSecurityStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js +165 -0
- package/lib/module/ui/screens/steps/SignUpSummaryStep.js.map +1 -0
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js +67 -0
- package/lib/module/ui/screens/steps/SignUpWelcomeStep.js.map +1 -0
- package/lib/typescript/models/interfaces.d.ts +4 -3
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/ui/components/AnimationExample.d.ts +1 -1
- package/lib/typescript/ui/components/AnimationExample.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyPayButton.d.ts +2 -2
- package/lib/typescript/ui/components/OxyPayButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/Section.d.ts +2 -1
- package/lib/typescript/ui/components/Section.d.ts.map +1 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts +2 -1
- package/lib/typescript/ui/components/SectionTitle.d.ts.map +1 -1
- package/lib/typescript/ui/components/StepBasedScreen.d.ts +24 -0
- package/lib/typescript/ui/components/StepBasedScreen.d.ts.map +1 -0
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts +2 -1
- package/lib/typescript/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts +1 -1
- package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts +9 -1
- package/lib/typescript/ui/components/internal/PinInput.d.ts.map +1 -1
- package/lib/typescript/ui/context/OxyContext.d.ts +2 -1
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts +2 -9
- package/lib/typescript/ui/screens/RecoverAccountScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts +21 -0
- package/lib/typescript/ui/screens/steps/RecoverRequestStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts +18 -0
- package/lib/typescript/ui/screens/steps/RecoverSuccessStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts +24 -0
- package/lib/typescript/ui/screens/steps/RecoverVerifyStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts +27 -0
- package/lib/typescript/ui/screens/steps/SignInPasswordStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts +27 -0
- package/lib/typescript/ui/screens/steps/SignInUsernameStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts +25 -0
- package/lib/typescript/ui/screens/steps/SignUpIdentityStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts +26 -0
- package/lib/typescript/ui/screens/steps/SignUpSecurityStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts +16 -0
- package/lib/typescript/ui/screens/steps/SignUpSummaryStep.d.ts.map +1 -0
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts +13 -0
- package/lib/typescript/ui/screens/steps/SignUpWelcomeStep.d.ts.map +1 -0
- package/package.json +2 -3
- package/src/models/interfaces.ts +5 -3
- package/src/ui/components/AnimationExample.tsx +9 -8
- package/src/ui/components/Header.tsx +2 -2
- package/src/ui/components/OxyPayButton.tsx +2 -2
- package/src/ui/components/OxyProvider.tsx +1 -1
- package/src/ui/components/Section.tsx +7 -7
- package/src/ui/components/SectionTitle.tsx +2 -2
- package/src/ui/components/StepBasedScreen.README.md +337 -0
- package/src/ui/components/StepBasedScreen.tsx +417 -0
- package/src/ui/components/icon/FAIRWalletIcon.tsx +2 -2
- package/src/ui/components/icon/OxyIcon.tsx +10 -11
- package/src/ui/components/internal/PinInput.tsx +13 -4
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +1 -1
- package/src/ui/context/OxyContext.tsx +12 -11
- package/src/ui/screens/PaymentGatewayScreen.tsx +2 -2
- package/src/ui/screens/ProfileScreen.tsx +54 -54
- package/src/ui/screens/RecoverAccountScreen.tsx +98 -211
- package/src/ui/screens/SignInScreen.tsx +148 -271
- package/src/ui/screens/SignUpScreen.tsx +146 -748
- package/src/ui/screens/internal/SignInPasswordStep.tsx +3 -3
- package/src/ui/screens/internal/SignInUsernameStep.tsx +2 -2
- package/src/ui/screens/steps/RecoverRequestStep.tsx +130 -0
- package/src/ui/screens/steps/RecoverSuccessStep.tsx +131 -0
- package/src/ui/screens/steps/RecoverVerifyStep.tsx +153 -0
- package/src/ui/screens/steps/SignInPasswordStep.tsx +172 -0
- package/src/ui/screens/steps/SignInUsernameStep.tsx +176 -0
- package/src/ui/screens/steps/SignUpIdentityStep.tsx +204 -0
- package/src/ui/screens/steps/SignUpSecurityStep.tsx +191 -0
- package/src/ui/screens/steps/SignUpSummaryStep.tsx +130 -0
- package/src/ui/screens/steps/SignUpWelcomeStep.tsx +65 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface RecoverSuccessStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepData?: any;
|
|
12
|
+
updateStepData: (data: any) => void;
|
|
13
|
+
allStepData: any[];
|
|
14
|
+
successMessage: string;
|
|
15
|
+
}
|
|
16
|
+
declare const RecoverSuccessStep: React.FC<RecoverSuccessStepProps>;
|
|
17
|
+
export default RecoverSuccessStep;
|
|
18
|
+
//# sourceMappingURL=RecoverSuccessStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecoverSuccessStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/RecoverSuccessStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,uBAAuB;IAE7B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,GAAG,EAAE,CAAC;IAGnB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqGzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface RecoverVerifyStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepData?: any;
|
|
12
|
+
updateStepData: (data: any) => void;
|
|
13
|
+
verificationCode: string;
|
|
14
|
+
setVerificationCode: (code: string) => void;
|
|
15
|
+
errorMessage: string;
|
|
16
|
+
setErrorMessage: (message: string) => void;
|
|
17
|
+
successMessage: string;
|
|
18
|
+
setSuccessMessage: (message: string) => void;
|
|
19
|
+
isLoading: boolean;
|
|
20
|
+
setIsLoading: (loading: boolean) => void;
|
|
21
|
+
}
|
|
22
|
+
declare const RecoverVerifyStep: React.FC<RecoverVerifyStepProps>;
|
|
23
|
+
export default RecoverVerifyStep;
|
|
24
|
+
//# sourceMappingURL=RecoverVerifyStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecoverVerifyStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/RecoverVerifyStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,sBAAsB;IAE5B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAGpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoHvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface SignInPasswordStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepData?: any;
|
|
12
|
+
updateStepData: (data: any) => void;
|
|
13
|
+
allStepData: any[];
|
|
14
|
+
password: string;
|
|
15
|
+
setPassword: (password: string) => void;
|
|
16
|
+
showPassword: boolean;
|
|
17
|
+
setShowPassword: (show: boolean) => void;
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
setErrorMessage: (message: string) => void;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
userProfile: any;
|
|
22
|
+
username: string;
|
|
23
|
+
handleSignIn: () => Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
declare const SignInPasswordStep: React.FC<SignInPasswordStepProps>;
|
|
26
|
+
export default SignInPasswordStep;
|
|
27
|
+
//# sourceMappingURL=SignInPasswordStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignInPasswordStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/SignInPasswordStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,UAAU,uBAAuB;IAE7B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,GAAG,EAAE,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IAGnB,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8HzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface SignInUsernameStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepData?: any;
|
|
12
|
+
updateStepData: (data: any) => void;
|
|
13
|
+
allStepData: any[];
|
|
14
|
+
username: string;
|
|
15
|
+
setUsername: (username: string) => void;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
setErrorMessage: (message: string) => void;
|
|
18
|
+
validationStatus: 'idle' | 'validating' | 'valid' | 'invalid';
|
|
19
|
+
userProfile: any;
|
|
20
|
+
isValidating: boolean;
|
|
21
|
+
isAddAccountMode?: boolean;
|
|
22
|
+
user?: any;
|
|
23
|
+
validateUsername: (username: string) => Promise<boolean>;
|
|
24
|
+
}
|
|
25
|
+
declare const SignInUsernameStep: React.FC<SignInUsernameStepProps>;
|
|
26
|
+
export default SignInUsernameStep;
|
|
27
|
+
//# sourceMappingURL=SignInUsernameStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignInUsernameStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/SignInUsernameStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,UAAU,uBAAuB;IAE7B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,WAAW,EAAE,GAAG,EAAE,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,gBAAgB,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAC;IAC9D,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IAGtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,GAAG,CAAC;IAGX,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkIzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface SignUpIdentityStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepData?: any;
|
|
12
|
+
updateStepData: (data: any) => void;
|
|
13
|
+
username: string;
|
|
14
|
+
email: string;
|
|
15
|
+
setUsername: (username: string) => void;
|
|
16
|
+
setEmail: (email: string) => void;
|
|
17
|
+
validationState: any;
|
|
18
|
+
setValidationState: (state: any) => void;
|
|
19
|
+
setErrorMessage: (message: string) => void;
|
|
20
|
+
validateEmail: (email: string) => boolean;
|
|
21
|
+
validateUsername: (username: string) => Promise<boolean>;
|
|
22
|
+
}
|
|
23
|
+
declare const SignUpIdentityStep: React.FC<SignUpIdentityStepProps>;
|
|
24
|
+
export default SignUpIdentityStep;
|
|
25
|
+
//# sourceMappingURL=SignUpIdentityStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignUpIdentityStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/SignUpIdentityStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,UAAU,uBAAuB;IAE7B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,eAAe,EAAE,GAAG,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACzC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAG3C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmKzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface SignUpSecurityStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
stepData?: any;
|
|
12
|
+
updateStepData: (data: any) => void;
|
|
13
|
+
password: string;
|
|
14
|
+
confirmPassword: string;
|
|
15
|
+
setPassword: (password: string) => void;
|
|
16
|
+
setConfirmPassword: (confirmPassword: string) => void;
|
|
17
|
+
showPassword: boolean;
|
|
18
|
+
showConfirmPassword: boolean;
|
|
19
|
+
setShowPassword: (show: boolean) => void;
|
|
20
|
+
setShowConfirmPassword: (show: boolean) => void;
|
|
21
|
+
setErrorMessage: (message: string) => void;
|
|
22
|
+
validatePassword: (password: string) => boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const SignUpSecurityStep: React.FC<SignUpSecurityStepProps>;
|
|
25
|
+
export default SignUpSecurityStep;
|
|
26
|
+
//# sourceMappingURL=SignUpSecurityStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignUpSecurityStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/SignUpSecurityStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,UAAU,uBAAuB;IAE7B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,kBAAkB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,EAAE,OAAO,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,sBAAsB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAG3C,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqJzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface SignUpSummaryStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
prevStep: () => void;
|
|
9
|
+
currentStep: number;
|
|
10
|
+
totalSteps: number;
|
|
11
|
+
allStepData: any[];
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const SignUpSummaryStep: React.FC<SignUpSummaryStepProps>;
|
|
15
|
+
export default SignUpSummaryStep;
|
|
16
|
+
//# sourceMappingURL=SignUpSummaryStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignUpSummaryStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/SignUpSummaryStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,sBAAsB;IAE5B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,GAAG,EAAE,CAAC;IAGnB,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAsGvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface SignUpWelcomeStepProps {
|
|
3
|
+
colors: any;
|
|
4
|
+
styles: any;
|
|
5
|
+
theme: string;
|
|
6
|
+
navigate: (screen: string, props?: Record<string, any>) => void;
|
|
7
|
+
nextStep: () => void;
|
|
8
|
+
currentStep: number;
|
|
9
|
+
totalSteps: number;
|
|
10
|
+
}
|
|
11
|
+
declare const SignUpWelcomeStep: React.FC<SignUpWelcomeStepProps>;
|
|
12
|
+
export default SignUpWelcomeStep;
|
|
13
|
+
//# sourceMappingURL=SignUpWelcomeStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignUpWelcomeStep.d.ts","sourceRoot":"","sources":["../../../../../src/ui/screens/steps/SignUpWelcomeStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,sBAAsB;IAE5B,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAGhE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4CvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/services",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.11",
|
|
4
4
|
"description": "Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
"zod": "^3.25.64",
|
|
91
91
|
"zustand": "^5.0.6",
|
|
92
92
|
"@tanstack/react-query": "^5.59.0",
|
|
93
|
-
"react": "^18.3.1",
|
|
94
93
|
"@amir-hossein-karimi/bottom-sheet": "^9.1.2",
|
|
95
94
|
"@gorhom/bottom-sheet": "^5.1.6"
|
|
96
95
|
},
|
|
@@ -129,7 +128,7 @@
|
|
|
129
128
|
"axios": "^1.9.0",
|
|
130
129
|
"invariant": "^2.2.4",
|
|
131
130
|
"jwt-decode": "^4.0.0",
|
|
132
|
-
"react": ">=18.
|
|
131
|
+
"react": ">=18.0.0",
|
|
133
132
|
"react-native": ">=0.76.0",
|
|
134
133
|
"react-native-gesture-handler": ">=2.16.1",
|
|
135
134
|
"react-native-reanimated": ">=3.16.0",
|
package/src/models/interfaces.ts
CHANGED
|
@@ -218,6 +218,8 @@ export interface AssetLink {
|
|
|
218
218
|
createdAt: string;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
export type AssetMetadata = Record<string, string | number | boolean | null | undefined>;
|
|
222
|
+
|
|
221
223
|
export interface AssetVariant {
|
|
222
224
|
type: string;
|
|
223
225
|
key: string;
|
|
@@ -225,7 +227,7 @@ export interface AssetVariant {
|
|
|
225
227
|
height?: number;
|
|
226
228
|
readyAt?: string;
|
|
227
229
|
size?: number;
|
|
228
|
-
metadata?:
|
|
230
|
+
metadata?: AssetMetadata;
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
export interface Asset {
|
|
@@ -242,7 +244,7 @@ export interface Asset {
|
|
|
242
244
|
updatedAt: string;
|
|
243
245
|
links: AssetLink[];
|
|
244
246
|
variants: AssetVariant[];
|
|
245
|
-
metadata?:
|
|
247
|
+
metadata?: AssetMetadata;
|
|
246
248
|
}
|
|
247
249
|
|
|
248
250
|
export interface AssetInitRequest {
|
|
@@ -262,7 +264,7 @@ export interface AssetCompleteRequest {
|
|
|
262
264
|
originalName: string;
|
|
263
265
|
size: number;
|
|
264
266
|
mime: string;
|
|
265
|
-
metadata?:
|
|
267
|
+
metadata?: AssetMetadata;
|
|
266
268
|
}
|
|
267
269
|
|
|
268
270
|
export interface AssetLinkRequest {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { useState } from 'react';
|
|
2
3
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
4
|
import Animated, {
|
|
4
5
|
useSharedValue,
|
|
@@ -15,7 +16,7 @@ import Animated, {
|
|
|
15
16
|
// Example component showcasing improved Reanimated usage
|
|
16
17
|
const AnimationExample: React.FC = () => {
|
|
17
18
|
const [currentStep, setCurrentStep] = useState(0);
|
|
18
|
-
|
|
19
|
+
|
|
19
20
|
// Shared values for better performance
|
|
20
21
|
const opacity = useSharedValue(1);
|
|
21
22
|
const scale = useSharedValue(1);
|
|
@@ -60,11 +61,11 @@ const AnimationExample: React.FC = () => {
|
|
|
60
61
|
// Complex animation sequence
|
|
61
62
|
const animateSequence = () => {
|
|
62
63
|
'worklet';
|
|
63
|
-
|
|
64
|
+
|
|
64
65
|
// Staggered animations for smooth transitions
|
|
65
66
|
opacity.value = withTiming(0.5, { duration: 200 });
|
|
66
67
|
scale.value = withSpring(0.8, { damping: 15, stiffness: 150 });
|
|
67
|
-
|
|
68
|
+
|
|
68
69
|
// Delayed follow-up animations
|
|
69
70
|
translateX.value = withDelay(
|
|
70
71
|
100,
|
|
@@ -83,9 +84,9 @@ const AnimationExample: React.FC = () => {
|
|
|
83
84
|
);
|
|
84
85
|
|
|
85
86
|
// Progress animation with easing
|
|
86
|
-
progress.value = withTiming(1, {
|
|
87
|
-
duration: 1000,
|
|
88
|
-
easing: Easing.out(Easing.exp)
|
|
87
|
+
progress.value = withTiming(1, {
|
|
88
|
+
duration: 1000,
|
|
89
|
+
easing: Easing.out(Easing.exp)
|
|
89
90
|
}, (finished) => {
|
|
90
91
|
if (finished) {
|
|
91
92
|
runOnJS(setCurrentStep)(currentStep + 1);
|
|
@@ -108,7 +109,7 @@ const AnimationExample: React.FC = () => {
|
|
|
108
109
|
<Animated.View style={[styles.container, backgroundStyle]}>
|
|
109
110
|
<Text style={styles.title}>Advanced Reanimated Example</Text>
|
|
110
111
|
<Text style={styles.subtitle}>Step: {currentStep}</Text>
|
|
111
|
-
|
|
112
|
+
|
|
112
113
|
<Animated.View style={[styles.box, animatedStyle]}>
|
|
113
114
|
<Text style={styles.boxText}>Animated Box</Text>
|
|
114
115
|
</Animated.View>
|
|
@@ -145,7 +145,7 @@ const Header: React.FC<HeaderProps> = ({
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
const renderRightActions = () => {
|
|
148
|
-
if (rightActions
|
|
148
|
+
if (rightActions?.length) {
|
|
149
149
|
return (
|
|
150
150
|
<View style={styles.rightActionsRow}>
|
|
151
151
|
{rightActions.map((a, i) => renderRightActionButton(a, i))}
|
|
@@ -283,7 +283,7 @@ const styles = StyleSheet.create({
|
|
|
283
283
|
zIndex: 1000,
|
|
284
284
|
...Platform.select({
|
|
285
285
|
web: {
|
|
286
|
-
position: '
|
|
286
|
+
position: 'absolute' as const,
|
|
287
287
|
},
|
|
288
288
|
default: {},
|
|
289
289
|
}),
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { TouchableOpacity, Text, View, StyleSheet, type ViewStyle, type TextStyle, type StyleProp, type LayoutChangeEvent } from 'react-native';
|
|
4
4
|
import { fontFamilies } from '../styles/fonts';
|
|
5
5
|
import { useOxy } from '../context/OxyContext';
|
|
6
|
-
import type { PaymentItem } from '../screens/PaymentGatewayScreen';
|
|
6
|
+
import type { PaymentItem, PaymentGatewayResult } from '../screens/PaymentGatewayScreen';
|
|
7
7
|
import OxyLogo from './OxyLogo';
|
|
8
8
|
|
|
9
9
|
export interface OxyPayButtonProps {
|
|
@@ -15,7 +15,7 @@ export interface OxyPayButtonProps {
|
|
|
15
15
|
currency?: string;
|
|
16
16
|
paymentItems?: PaymentItem[];
|
|
17
17
|
description?: string;
|
|
18
|
-
onPaymentResult?: (result:
|
|
18
|
+
onPaymentResult?: (result: PaymentGatewayResult) => void;
|
|
19
19
|
/**
|
|
20
20
|
* Button background color. If not provided, uses variant ('white' or 'black').
|
|
21
21
|
*/
|
|
@@ -142,7 +142,7 @@ const OxyBottomSheet: React.FC<OxyProviderProps> = ({
|
|
|
142
142
|
const oxyServices = providedOxyServices || contextOxy?.oxyServices;
|
|
143
143
|
// Use the internal ref (which is passed as a prop from OxyProvider)
|
|
144
144
|
const modalRef = useRef<BottomSheetModalRef>(null);
|
|
145
|
-
const navigationRef = useRef<((screen: string, props?: Record<string,
|
|
145
|
+
const navigationRef = useRef<((screen: string, props?: Record<string, unknown>) => void) | null>(null);
|
|
146
146
|
// Remove contentHeight, containerWidth, and snap point state/logic
|
|
147
147
|
// Animation values - keep for content fade/slide
|
|
148
148
|
const fadeAnim = useRef(new Animated.Value(Platform.OS === 'android' ? 1 : 0)).current;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { View, StyleSheet } from 'react-native';
|
|
2
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import SectionTitle from './SectionTitle';
|
|
4
4
|
|
|
5
5
|
interface SectionProps {
|
|
@@ -7,15 +7,15 @@ interface SectionProps {
|
|
|
7
7
|
theme: 'light' | 'dark';
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
isFirst?: boolean;
|
|
10
|
-
style?:
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
const Section: React.FC<SectionProps> = ({
|
|
14
|
-
title,
|
|
15
|
-
theme,
|
|
16
|
-
children,
|
|
13
|
+
const Section: React.FC<SectionProps> = ({
|
|
14
|
+
title,
|
|
15
|
+
theme,
|
|
16
|
+
children,
|
|
17
17
|
isFirst = false,
|
|
18
|
-
style
|
|
18
|
+
style
|
|
19
19
|
}) => {
|
|
20
20
|
return (
|
|
21
21
|
<View style={[styles.section, isFirst && styles.firstSection, style]}>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { Text, StyleSheet } from 'react-native';
|
|
2
|
+
import { Text, StyleSheet, type StyleProp, type TextStyle } from 'react-native';
|
|
3
3
|
import { fontFamilies } from '../styles/fonts';
|
|
4
4
|
|
|
5
5
|
interface SectionTitleProps {
|
|
6
6
|
title: string;
|
|
7
7
|
theme: 'light' | 'dark';
|
|
8
|
-
style?:
|
|
8
|
+
style?: StyleProp<TextStyle>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const SectionTitle: React.FC<SectionTitleProps> = ({ title, theme, style }) => {
|