import { Ionicons } from '@expo/vector-icons'; import { StyleSheet, Text, View } from 'react-native'; import { colors, spacing } from '../../../src/theme'; import { useOnboarding } from '../../../src/hooks'; import { ScreenShell } from '../ui/ScreenShell'; import { RadioRow } from '../ui/RadioRow'; import { Tag, TagGroup } from '../ui/Tag'; import { PrimaryButton } from '../ui/PrimaryButton'; const LEVELS = ['初中及以下', '中专中技', '高中', '大专', '本科', '硕士', '博士']; export function P18Education() { const { data, setData, navigate, back } = useOnboarding(); // 「类型」同为本页采集项,选了学历却没选全日制/非全日制同样算半截记录 const canNext = data.education !== null && data.eduType !== null; return ( {LEVELS.map((l) => ( setData({ education: l })} /> ))} 类型 setData({ eduType: '全日制' })} /> setData({ eduType: '非全日制' })} /> navigate('P20')} /> ); } const styles = StyleSheet.create({ iconWrap: { width: 64, height: 64, borderRadius: 18, backgroundColor: colors.primaryLight, alignItems: 'center', justifyContent: 'center', alignSelf: 'center', marginBottom: spacing.block, }, list: { gap: 8 }, subTitle: { fontSize: 15, fontWeight: '700', color: colors.textPrimary, marginTop: spacing.section, marginBottom: spacing.block }, footer: { marginTop: 28 }, });