import React from 'react'; import { OnboardingPages } from './OnboardingPages'; import { CustomPages } from './CustomPages'; import { Animated } from 'react-native'; import { useOnboarding } from '../hooks/useOnboarding'; import type { OnboardingProps } from '../types'; export const Swiper: React.FC = (props) => { const scrollX = React.useRef(new Animated.Value(0)).current; const { flatListRef, setCurrentPage, currentPage, numberOfScreens, nextPage, scrollEnabled, } = useOnboarding(); if (props.children) { return ( {props.children} ); } return ( ); };