resetSuccessful.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { View, Text, StyleSheet, Image } from 'react-native';
  2. import { router } from 'expo-router';
  3. import { SafeAreaView } from 'react-native-safe-area-context';
  4. import NormalButton from '../../../global/normal_button';
  5. const ResetSuccessful = ({}) => {
  6. return (
  7. <SafeAreaView className="flex-1">
  8. <View className="flex-1 justify-center">
  9. <View className="items-center space-y-6">
  10. <Text style={styles.titleText}>重置密碼成功</Text>
  11. <Text style={styles.text}>歡迎使用 Crazy Charge</Text>
  12. <Text style={styles.text}>祝你一路順“瘋“</Text>
  13. </View>
  14. <Image
  15. style={{
  16. alignSelf: 'center'
  17. }}
  18. source={require('../../../../assets/successLogo.png')}
  19. />
  20. <View className="mx-[5%]">
  21. <NormalButton
  22. onPress={() => router.replace('login')}
  23. title={<Text className="text-white">完成</Text>}
  24. />
  25. </View>
  26. </View>
  27. </SafeAreaView>
  28. );
  29. };
  30. const styles = StyleSheet.create({
  31. titleText: { fontSize: 32, fontWeight: '400' },
  32. text: {
  33. fontSize: 18
  34. }
  35. });
  36. export default ResetSuccessful;