轻松聘
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.5 KiB

import { Ionicons } from '@expo/vector-icons';
import { StyleSheet, Text, View } from 'react-native';
import { colors } from '../../../src/theme';
import { useOnboarding } from '../../../src/hooks';
import { ScreenShell } from '../ui/ScreenShell';
import { YearMonthWheel } from '../ui/WheelPicker';
import { PrimaryButton } from '../ui/PrimaryButton';
export function P13JoinDate() {
const { data, setData, navigate, back, meta } = useOnboarding();
return (
<ScreenShell time={meta.time} battery={meta.battery} title="入职时间" showBack onBack={back}>
<View style={styles.iconWrap}>
<Ionicons name="calendar" size={34} color={colors.primary} />
</View>
<Text style={styles.tip}>在什么时候入职 {data.company}</Text>
<YearMonthWheel
year={data.joinYear}
month={data.joinMonth}
onYearChange={(v) => setData({ joinYear: v })}
onMonthChange={(v) => setData({ joinMonth: v })}
/>
<View style={styles.footer}>
<PrimaryButton label="下一步" active onPress={() => navigate('P14')} />
</View>
</ScreenShell>
);
}
const styles = StyleSheet.create({
iconWrap: {
width: 64,
height: 64,
borderRadius: 18,
backgroundColor: colors.primaryLight,
alignItems: 'center',
justifyContent: 'center',
alignSelf: 'center',
marginBottom: 12,
},
tip: { fontSize: 13, color: colors.textHint, textAlign: 'center', marginBottom: 18 },
footer: { marginTop: 28 },
});