@umituz/react-native-onboarding 3.0.4 → 3.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": "3.0.4",
3
+ "version": "3.0.5",
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",
@@ -74,6 +74,10 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
74
74
  showPaywallOnComplete = false,
75
75
  useGradient: globalUseGradient = false,
76
76
  }) => {
77
+ if (__DEV__) {
78
+ console.log("[OnboardingScreen] Rendering with slides:", slides?.length);
79
+ }
80
+
77
81
  const {
78
82
  filteredSlides,
79
83
  currentSlide,
@@ -96,8 +100,15 @@ export const OnboardingScreen: React.FC<OnboardingScreenProps> = ({
96
100
  globalUseGradient,
97
101
  });
98
102
 
103
+ if (__DEV__) {
104
+ console.log("[OnboardingScreen] filteredSlides:", filteredSlides?.length);
105
+ }
106
+
99
107
  // Early return if no slides - prevents rendering empty/broken screen
100
108
  if (filteredSlides.length === 0) {
109
+ if (__DEV__) {
110
+ console.log("[OnboardingScreen] No slides, returning null");
111
+ }
101
112
  return null;
102
113
  }
103
114