@umituz/react-native-onboarding 2.8.1 → 2.9.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-onboarding",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Advanced onboarding flow for React Native apps with personalization questions, theme-aware colors, animations, and customizable slides. SOLID, DRY, KISS principles applied.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -63,7 +63,7 @@ export const useOnboardingStore = create<OnboardingStore>((set, get) => ({
|
|
|
63
63
|
isOnboardingComplete: isComplete,
|
|
64
64
|
userData,
|
|
65
65
|
loading: false,
|
|
66
|
-
error: completionResult.success ? null :
|
|
66
|
+
error: completionResult.success ? null : "Failed to load onboarding status",
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
69
|
|
|
@@ -82,7 +82,7 @@ export const useOnboardingStore = create<OnboardingStore>((set, get) => ({
|
|
|
82
82
|
isOnboardingComplete: result.success,
|
|
83
83
|
userData,
|
|
84
84
|
loading: false,
|
|
85
|
-
error: result.success ? null :
|
|
85
|
+
error: result.success ? null : "Failed to complete onboarding",
|
|
86
86
|
});
|
|
87
87
|
},
|
|
88
88
|
|
|
@@ -101,7 +101,7 @@ export const useOnboardingStore = create<OnboardingStore>((set, get) => ({
|
|
|
101
101
|
isOnboardingComplete: result.success,
|
|
102
102
|
userData,
|
|
103
103
|
loading: false,
|
|
104
|
-
error: result.success ? null :
|
|
104
|
+
error: result.success ? null : "Failed to skip onboarding",
|
|
105
105
|
});
|
|
106
106
|
},
|
|
107
107
|
|
|
@@ -118,7 +118,7 @@ export const useOnboardingStore = create<OnboardingStore>((set, get) => ({
|
|
|
118
118
|
currentStep: 0,
|
|
119
119
|
userData: { answers: {} },
|
|
120
120
|
loading: false,
|
|
121
|
-
error: result.success ? null :
|
|
121
|
+
error: result.success ? null : "Failed to reset onboarding",
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
|