@umituz/react-native-onboarding 1.0.3 → 1.0.5

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.3",
3
+ "version": "1.0.5",
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",
package/src/index.ts CHANGED
@@ -55,15 +55,10 @@ export { OnboardingHeader, type OnboardingHeaderProps } from "./presentation/com
55
55
  export { OnboardingFooter, type OnboardingFooterProps } from "./presentation/components/OnboardingFooter";
56
56
 
57
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
58
+ // Note: TypeScript doesn't allow exporting both a type and a value with the same name
59
+ // The type is exported above as OnboardingSlide
60
+ // The component is exported here with a different name to avoid conflict
60
61
  import { OnboardingSlide as OnboardingSlideComponent } from "./presentation/components/OnboardingSlide";
61
62
  export { OnboardingSlideComponent };
62
63
  export type { OnboardingSlideProps } from "./presentation/components/OnboardingSlide";
63
64
 
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
-
@@ -13,7 +13,7 @@ import type { OnboardingOptions } from "../../domain/entities/OnboardingOptions"
13
13
  import { useOnboardingNavigation } from "../../infrastructure/hooks/useOnboardingNavigation";
14
14
  import { useOnboardingStore } from "../../infrastructure/storage/OnboardingStore";
15
15
  import { OnboardingHeader } from "../components/OnboardingHeader";
16
- import { OnboardingSlide } from "../components/OnboardingSlide";
16
+ import { OnboardingSlide as OnboardingSlideComponent } from "../components/OnboardingSlide";
17
17
  import { OnboardingFooter } from "../components/OnboardingFooter";
18
18
 
19
19
  export interface OnboardingScreenProps extends OnboardingOptions {