/** * Created by MeePwn * https://github.com/maybewaityou * * description: * */ import React from 'react'; import { StyleSheet, ScrollView, Text, View, SafeAreaView, TouchableOpacity, ImageBackground, Dimensions, } from 'react-native'; import { IImageStyle, ITextStyle, IViewStyle } from 'react-native-screen-adapter'; import { navigator, router } from 'mario-navigation-extension'; import SplashScreen from 'react-native-splash-screen'; import { Color, Images } from '@constant'; export interface IStyle { safeContainer: IViewStyle; container: IViewStyle; contentContainer: IViewStyle; titleContainer: IViewStyle; title: ITextStyle; details: ITextStyle; skipContainer: IViewStyle; skipTitle: ITextStyle; indicatorContainer: IViewStyle; indicator: IViewStyle; activeIndicator: IViewStyle; startContainer: IViewStyle; startTitle: ITextStyle; } function SkipButton(props: any) { return ( {props.title} ); } function TitleView(props: any) { return ( {props.title} {props.details} ); } function Indicator(props: any) { const list = [0, 1, 2, 3].map((item) => { const indicatorStyle = props.activeIndex === item ? styles.activeIndicator : styles.indicator; return ; }); return {list}; } function StartButton(props: any) { return ( {props.title} ); } function handlePress() { router.replace('TabContainer'); } export default (props: Readonly) => { navigator.init(props.navigation); SplashScreen.hide(); return ( ); }; const styles = StyleSheet.create({ safeContainer: { flex: 1, }, container: { flex: 1, justifyContent: 'center', alignItems: 'center', width$: 375, }, contentContainer: { backgroundColor: 'yellow', }, titleContainer: { justifyContent: 'center', alignItems: 'center', paddingTop: 104, position: 'absolute', top: 0, left: 0, right: 0, }, title: { fontSize: 36, // fontFamily: 'HYk2gj', color: Color.red, }, details: { color: Color.fontColor, marginTop: 16, $fontSize: '$middleFontSize', }, skipContainer: { justifyContent: 'center', alignItems: 'center', width$: 64, height$: 28, backgroundColor: Color.line, borderRadius: 17.5, position: 'absolute', top: 32, right: 16, }, skipTitle: { color: Color.fontColor, $fontSize: '$middleSmallFontSize', }, indicatorContainer: { flexDirection: 'row', justifyContent: 'center', alignItems: 'center', position: 'absolute', left: 0, right: 0, bottom: 60, }, indicator: { width$: 6, height$: 6, backgroundColor: Color.maskColor, marginHorizontal: 4, borderRadius: 4, }, activeIndicator: { width$: 16, height$: 6, backgroundColor: Color.red, marginHorizontal: 4, borderRadius: 4, }, startContainer: { justifyContent: 'center', alignItems: 'center', height$: 48, backgroundColor: Color.red, borderRadius: 24, position: 'absolute', left: 68, right: 68, bottom: 32, }, startTitle: { color: Color.white, $fontSize: '$middleFontSize', }, });