Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. constructor() {
  2. super();
  3.  
  4. this.layoutComponents = {
  5. retake: {
  6. onPress: this.props.changeToStep(0),
  7. component: <Text>{t.CapturePhotoInfo.Retake}</Text>
  8. },
  9. cancel: {
  10. onPress: this.props.navigator.pop(),
  11. component: this.props.step === 4
  12. ?
  13. <Icon
  14. style={s.regPrevArrow}
  15. name={c.BACK_BUTTON_NAVBAR}
  16. size={30}
  17. color="white"
  18. />
  19. :
  20. <Text>{t.CapturePhotoInfo.Cancel}</Text>
  21. }
  22. };
  23.  
  24. this.contentLayout = [
  25. {
  26. top: [
  27. {}
  28. ],
  29. bottom: [
  30. this.layoutComponents.retake,
  31. {
  32. onPress: this.props.changeToStep(2),
  33. component: <Text>{t.CapturePhotoInfo.UsePhoto}</Text>
  34. },
  35. ]
  36. },
  37. {
  38. top: [
  39. this.layoutComponents.cancel,
  40. {
  41. onPress:
  42. Alert.alert(
  43. t.CapturePhotoInfo.Alert,
  44. t.CapturePhotoInfo.CaptureAnother,
  45. [
  46. { text: t.Buttons.no, onPress: () => this.props.changeToStep(4) },
  47. { text: t.Buttons.yes, onPress: () => this.props.changeToStep(0) },
  48. ],
  49. { cancelable: false }
  50. ),
  51. component: <Text>{t.Buttons.next}</Text>
  52. }
  53. ],
  54. bottom: [
  55. this.layoutComponents.retake
  56. ]
  57. },
  58. {
  59. top: [
  60. {
  61. onPress: this.toggleFlashMode,
  62. component: <Text>123</Text>
  63. }
  64. ],
  65. bottom: [
  66. {
  67. onPress: () => {},
  68. component: <Text>{t.CapturePhotoInfo.Uplod}</Text>
  69. }
  70. ]
  71. },
  72. {
  73. top: [
  74. this.layoutComponents.cancel,
  75. {
  76. onPress: () => {},
  77. component: <Text>{t.CapturePhotoInfo.Submit}</Text>
  78. }
  79. ],
  80. bottom: [
  81. {
  82. component: <Text>{t.CapturePhotoInfo.Privacy}</Text>
  83. }
  84. ]
  85. }
  86. ]
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement