@umituz/react-native-onboarding 1.0.1 → 1.0.3

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.3",
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,19 @@ 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: TypeScript doesn't allow exporting both a type and a value with the same name in the same scope
59
+ // So we export the component with a different name, and users can import the type separately
60
+ import { OnboardingSlide as OnboardingSlideComponent } from "./presentation/components/OnboardingSlide";
61
+ export { OnboardingSlideComponent };
62
+ export type { OnboardingSlideProps } from "./presentation/components/OnboardingSlide";
63
+
64
+ // For backward compatibility, export component as OnboardingSlide
65
+ // Users should import type as: import type { OnboardingSlide } from '@umituz/react-native-onboarding'
66
+ // And component as: import { OnboardingSlideComponent } from '@umituz/react-native-onboarding'
67
+ // Or use the alias: import { OnboardingSlideComponent as OnboardingSlide } from '@umituz/react-native-onboarding'
68
+ export { OnboardingSlideComponent as OnboardingSlide };
69
+
@@ -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;