@umituz/react-native-onboarding 1.0.1 → 1.0.2

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": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Generic onboarding flow for React Native apps with gradient backgrounds, animations, and customizable slides. SOLID, DRY, KISS principles applied.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -33,7 +33,7 @@
33
33
  "peerDependencies": {
34
34
  "@umituz/react-native-storage": "latest",
35
35
  "@umituz/react-native-localization": "latest",
36
- "@umituz/react-native-theme": "latest",
36
+ "@umituz/react-native-design-system-theme": "latest",
37
37
  "@umituz/react-native-design-system": "latest",
38
38
  "expo-linear-gradient": "^15.0.0",
39
39
  "react": ">=18.2.0",
@@ -45,7 +45,7 @@
45
45
  "@types/react-native": "^0.73.0",
46
46
  "@umituz/react-native-storage": "^1.1.0",
47
47
  "@umituz/react-native-localization": "latest",
48
- "@umituz/react-native-theme": "latest",
48
+ "@umituz/react-native-design-system-theme": "latest",
49
49
  "expo-linear-gradient": "^15.0.7",
50
50
  "react": "^18.2.0",
51
51
  "react-native": "^0.74.0",
package/src/index.ts CHANGED
@@ -51,7 +51,14 @@ export {
51
51
  // =============================================================================
52
52
 
53
53
  export { OnboardingScreen, type OnboardingScreenProps } from "./presentation/screens/OnboardingScreen";
54
- export { OnboardingSlide, type OnboardingSlideProps } from "./presentation/components/OnboardingSlide";
55
54
  export { OnboardingHeader, type OnboardingHeaderProps } from "./presentation/components/OnboardingHeader";
56
55
  export { OnboardingFooter, type OnboardingFooterProps } from "./presentation/components/OnboardingFooter";
57
56
 
57
+ // Export OnboardingSlide component
58
+ // Note: We export it with the same name as the type, which TypeScript allows
59
+ // because one is a type (from domain) and one is a value (component)
60
+ // Users can import both:
61
+ // import type { OnboardingSlide } from '@umituz/react-native-onboarding'; // type
62
+ // import { OnboardingSlide } from '@umituz/react-native-onboarding'; // component
63
+ export { OnboardingSlide, type OnboardingSlideProps } from "./presentation/components/OnboardingSlide";
64
+
@@ -11,6 +11,8 @@ export interface UseOnboardingNavigationReturn {
11
11
  currentIndex: number;
12
12
  goToNext: () => void;
13
13
  goToPrevious: () => void;
14
+ complete: () => Promise<void>;
15
+ skip: () => Promise<void>;
14
16
  isLastSlide: boolean;
15
17
  isFirstSlide: boolean;
16
18
  }
@@ -8,7 +8,7 @@ import React, { useMemo } from "react";
8
8
  import { View, TouchableOpacity, Text, StyleSheet } from "react-native";
9
9
  import { useSafeAreaInsets } from "react-native-safe-area-context";
10
10
  import { useLocalization } from "@umituz/react-native-localization";
11
- import { useAppDesignTokens } from "@umituz/react-native-theme";
11
+ import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
12
12
 
13
13
  export interface OnboardingFooterProps {
14
14
  currentIndex: number;