-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathPasswordConfirmationScreen.js
50 lines (46 loc) · 1.66 KB
/
PasswordConfirmationScreen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from 'react';
import {Image, View} from 'react-native';
import Text from '../../components/Text';
import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize';
import styles from '../../styles/styles';
import confettiPop from '../../../assets/images/confetti-pop.gif';
import Button from '../../components/Button';
import FixedFooter from '../../components/FixedFooter';
import Navigation from '../../libs/Navigation/Navigation';
const propTypes = {
...withLocalizePropTypes,
};
const PasswordConfirmationScreen = props => (
<>
<View style={[styles.screenCenteredContainer, styles.alignItemsCenter]}>
<Image
source={confettiPop}
style={styles.confettiIcon}
/>
<Text
style={[
styles.textStrong,
styles.textLarge,
styles.mb2,
]}
>
{props.translate('passwordConfirmationScreen.passwordUpdated')}
</Text>
<Text style={styles.textAlignCenter}>
{props.translate('passwordConfirmationScreen.allSet')}
</Text>
</View>
<FixedFooter>
<Button
success
text={props.translate('passwordConfirmationScreen.gotIt')}
style={styles.mt6}
pressOnEnter
onPress={() => Navigation.goBack()}
/>
</FixedFooter>
</>
);
PasswordConfirmationScreen.propTypes = propTypes;
PasswordConfirmationScreen.displayName = 'PasswordConfirmationScreen';
export default withLocalize(PasswordConfirmationScreen);