@umituz/react-native-onboarding 2.0.2 → 2.1.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.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Advanced onboarding flow for React Native apps with personalization questions, gradient backgrounds, animations, and customizable slides. SOLID, DRY, KISS principles applied.",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -120,6 +120,8 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
|
|
|
120
120
|
currentIndex,
|
|
121
121
|
goToNext,
|
|
122
122
|
goToPrevious,
|
|
123
|
+
complete: completeOnboarding,
|
|
124
|
+
skip: skipOnboarding,
|
|
123
125
|
isLastSlide,
|
|
124
126
|
isFirstSlide,
|
|
125
127
|
} = useOnboardingNavigation(filteredSlides.length, handleComplete, handleSkip);
|
|
@@ -131,11 +133,9 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
|
|
|
131
133
|
}
|
|
132
134
|
|
|
133
135
|
if (isLastSlide) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
handleComplete();
|
|
138
|
-
}
|
|
136
|
+
// Use useOnboardingNavigation's complete function
|
|
137
|
+
// This will call handleComplete callback and emit event
|
|
138
|
+
await completeOnboarding();
|
|
139
139
|
} else {
|
|
140
140
|
goToNext();
|
|
141
141
|
// Load next slide's answer
|