Guest User

Untitled

a guest
Oct 16th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <View
  2. style={{
  3. flex: 1,
  4. alignItems: 'stretch',
  5. justifyContent: 'space-between',
  6. overflow: 'hidden',
  7. backgroundColor: Colors.darkBlue
  8. }}
  9. >
  10. {/* Header */}
  11. <View
  12. style={{
  13. flexDirection: 'row',
  14. alignItems: 'stretch',
  15. height: 300
  16. }}>
  17. {/* Question bubble */}
  18. { (this.state.question && this.state.question !== '') ? (
  19. <TouchableOpacity
  20. style={{
  21. flex: 1,
  22. flexDirection: 'row',
  23. backgroundColor: 'transparent',
  24. alignItems: 'stretch',
  25. paddingRight: QUESTION_SPEAKER_RADIUS
  26. }}
  27. >
  28. <View
  29. style={{
  30. flex: 1,
  31. alignSelf: 'stretch',
  32. alignItems: 'center',
  33. justifyContent: 'center',
  34. backgroundColor: 'white',
  35. }}
  36. >
  37. <Text>
  38. {this.state.question}
  39. </Text>
  40. </View>
  41. </TouchableOpacity>
  42. ) : null
  43. }
  44. </View>
  45. <KeyboardInput
  46. style={{}}
  47. onClose={() => this.setState({ displayMode: DISPLAY_MODES.homeEmpty })}
  48. onConfirm={(text) => this.onConfirmText(text) }
  49. />
  50. </View>
  51.  
  52. <View
  53. style={{
  54. alignSelf: 'stretch',
  55. flexDirection: 'row',
  56. alignItems: 'center',
  57. justifyContent: 'flex-end',
  58. backgroundColor: Colors.pink,
  59. borderColor: Colors.lime,
  60. borderTopWidth: 4,
  61. padding: 6,
  62. }}>
  63. <View
  64. style={{
  65. flex: 1,
  66. borderRadius: 6,
  67. padding: 0,
  68. backgroundColor: Colors.white,
  69. alignItems: 'stretch',
  70. }}
  71. >
  72. <TextInput
  73. placeholder={Strings.child_keyboard_placeholder}
  74. value={this.state.messageTextInput}
  75. onChangeText={(text) => this.setState({messageTextInput: text})}
  76. style={{
  77. height: 50,
  78. marginLeft: 10,
  79. marginRight: CONFIRM_BUTTON_SIZE / 2
  80. }}
  81. underlineColorAndroid='transparent'
  82. numberOfLines={2}
  83. maxLength={70}
  84. autoCorrect={false}
  85. returnKeyType='next'
  86. />
  87. </View>
  88. </View>
  89.  
  90. windowSoftInputMode="adjustResize";
  91.  
  92. windowSoftInputMode="adjustPan"
Add Comment
Please, Sign In to add comment