resetSuccessful.tsx 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { View, Text, StyleSheet, Image } from 'react-native';
  2. import NormalButton from '../../../global/normal_button';
  3. const successLogo = require('../../../../assets/successLogo.png');
  4. const ResetSuccessful = () => {
  5. const imageSize = 200;
  6. return (
  7. <>
  8. <View style={styles.container}>
  9. <View style={styles.textContainer}>
  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. width: imageSize,
  17. height: imageSize,
  18. alignSelf: 'center',
  19. marginVertical: 9
  20. }}
  21. source={successLogo}
  22. />
  23. <NormalButton
  24. title={<Text style={{ color: '#fff' }}>下一步</Text>}
  25. onPress={() => console.log('clicked')}
  26. />
  27. </View>
  28. </>
  29. );
  30. };
  31. const styles = StyleSheet.create({
  32. container: {
  33. flex: 1,
  34. paddingHorizontal: 20,
  35. height: '100%'
  36. },
  37. textContainer: {
  38. justifyContent: 'flex-start',
  39. alignItems: 'center',
  40. // backgroundColor: 'black',
  41. paddingTop: '10%',
  42. gap: 15
  43. },
  44. titleText: { fontSize: 28 },
  45. text: {
  46. fontSize: 16
  47. }
  48. });
  49. export default ResetSuccessful;