Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- constructor() {
- super();
- this.layoutComponents = {
- retake: {
- onPress: this.props.changeToStep(0),
- component: <Text>{t.CapturePhotoInfo.Retake}</Text>
- },
- cancel: {
- onPress: this.props.navigator.pop(),
- component: this.props.step === 4
- ?
- <Icon
- style={s.regPrevArrow}
- name={c.BACK_BUTTON_NAVBAR}
- size={30}
- color="white"
- />
- :
- <Text>{t.CapturePhotoInfo.Cancel}</Text>
- }
- };
- this.contentLayout = [
- {
- top: [
- {}
- ],
- bottom: [
- this.layoutComponents.retake,
- {
- onPress: this.props.changeToStep(2),
- component: <Text>{t.CapturePhotoInfo.UsePhoto}</Text>
- },
- ]
- },
- {
- top: [
- this.layoutComponents.cancel,
- {
- onPress:
- Alert.alert(
- t.CapturePhotoInfo.Alert,
- t.CapturePhotoInfo.CaptureAnother,
- [
- { text: t.Buttons.no, onPress: () => this.props.changeToStep(4) },
- { text: t.Buttons.yes, onPress: () => this.props.changeToStep(0) },
- ],
- { cancelable: false }
- ),
- component: <Text>{t.Buttons.next}</Text>
- }
- ],
- bottom: [
- this.layoutComponents.retake
- ]
- },
- {
- top: [
- {
- onPress: this.toggleFlashMode,
- component: <Text>123</Text>
- }
- ],
- bottom: [
- {
- onPress: () => {},
- component: <Text>{t.CapturePhotoInfo.Uplod}</Text>
- }
- ]
- },
- {
- top: [
- this.layoutComponents.cancel,
- {
- onPress: () => {},
- component: <Text>{t.CapturePhotoInfo.Submit}</Text>
- }
- ],
- bottom: [
- {
- component: <Text>{t.CapturePhotoInfo.Privacy}</Text>
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement