import React, {useRef} from 'react'; import AppIntroSlider from 'react-native-app-intro-slider'; import { Dimensions, ImageBackground, StatusBar, View, ScrollView, } from 'react-native'; import {Centered, Column, Row, Text, Button} from '../../components/ui'; import {Theme} from '../../components/ui/styleUtils'; import {useTranslation} from 'react-i18next'; import {RootRouteProps} from '../../routes'; import {useWelcomeScreen} from '../WelcomeScreenController'; import LinearGradient from 'react-native-linear-gradient'; import {SvgImage} from '../../components/ui/svg'; import testIDProps from '../../shared/commonUtil'; import {INTRO_SLIDER_LOGO_MARGIN} from '../../shared/constants'; import {StaticAuthScreen} from '../IntroSliders/biometricIntro'; import {StaticScanScreen} from '../IntroSliders/quickAccessIntro'; import StaticBackupAndRestoreScreen from '../IntroSliders/backupRestoreIntro'; import {StaticHomeScreen} from '../IntroSliders/trustedDigitalWalletIntro'; import {StaticSendVcScreen} from '../IntroSliders/secureShareIntro'; export const IntroSlidersScreen: React.FC = props => { const slider = useRef(); const {t} = useTranslation('OnboardingOverlay'); const controller = useWelcomeScreen(props); // Define slides with React components const slides = [ { key: 'one', title: t('stepOneTitle'), text: t('stepOneText'), component: , }, { key: 'two', title: t('stepTwoTitle'), text: t('stepTwoText'), component: , }, { key: 'three', title: t('stepThreeTitle'), text: t('stepThreeText'), component: , }, { key: 'four', title: t('stepFourTitle'), text: t('stepFourText'), component: , }, { key: 'five', title: t('stepFiveTitle'), text: t('stepFiveText'), component: , }, ]; const isPasscodeSet = controller.isPasscodeSet(); const renderItem = ({item}) => { return ( {SvgImage.InjiSmallLogo()} {item.key !== 'five' && (