@eohjsc/react-native-smart-city 0.2.23 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/assets/images/OneTap@1x.svg +14 -0
  3. package/index.js +0 -2
  4. package/package.json +11 -3
  5. package/src/Images/Common/arrow-back.png +0 -0
  6. package/src/Images/Common/checked@2x.png +0 -0
  7. package/src/Images/Common/checked@3x.png +0 -0
  8. package/src/Images/Common/file.png +0 -0
  9. package/src/Images/Common/fullscreen.png +0 -0
  10. package/src/Images/Common/refresh.png +0 -0
  11. package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +1 -1
  12. package/src/commons/ActionGroup/OnOffTemplate/index.js +4 -4
  13. package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +1 -1
  14. package/src/commons/ActionGroup/StatesGridActionTemplate.js +2 -2
  15. package/src/commons/ActionGroup/__test__/OnOffButtonTemplate.test.js +8 -13
  16. package/src/commons/ActionGroup/__test__/OnOffTemplate.test.js +3 -3
  17. package/src/commons/ActionGroup/__test__/OptionsDropdownTemplate.test.js +26 -46
  18. package/src/commons/ActionGroup/__test__/ThreeButtonTemplate.test.js +11 -5
  19. package/src/commons/ActionGroup/__test__/TimerActionTemplate.test.js +14 -8
  20. package/src/commons/ActionGroup/__test__/TimerActionTemplateWithutConfigValue.test.js +17 -23
  21. package/src/commons/ActionGroup/__test__/__snapshots__/ThreeButtonTemplate.test.js.snap +241 -223
  22. package/src/commons/ActionGroup/__test__/index.test.js +39 -107
  23. package/src/commons/ActionTemplate/ActionTemplateStyles.js +14 -0
  24. package/src/commons/ActionTemplate/OnOffButtonAction.js +40 -0
  25. package/src/commons/ActionTemplate/OnOffButtonActionStyles.js +11 -0
  26. package/src/commons/ActionTemplate/OneButtonAction.js +26 -0
  27. package/src/commons/ActionTemplate/OneButtonActionStyles.js +11 -0
  28. package/src/commons/ActionTemplate/ThreeButtonAction.js +55 -0
  29. package/src/commons/ActionTemplate/ThreeButtonActionStyles.js +11 -0
  30. package/src/commons/ActionTemplate/__test__/OnOffButtonAction.test.js +34 -0
  31. package/src/commons/ActionTemplate/__test__/OneButtonAction.test.js +33 -0
  32. package/src/commons/ActionTemplate/__test__/ThreeButtonAction.test.js +35 -0
  33. package/src/commons/ActionTemplate/__test__/index.test.js +71 -0
  34. package/src/commons/ActionTemplate/index.js +69 -0
  35. package/src/commons/Automate/ItemAutomate.js +1 -31
  36. package/src/commons/Automate/ItemAutomateStyles.js +10 -7
  37. package/src/commons/Automate/ItemScriptAction.js +9 -5
  38. package/src/commons/Automate/ItemScriptActionStyles.js +4 -0
  39. package/src/commons/ChartLoading/__test__/ChartLoading.test.js +9 -7
  40. package/src/commons/Device/DeviceAlertStatus.js +3 -1
  41. package/src/commons/Device/Emergency/__test__/EmergencyButton.test.js +14 -6
  42. package/src/commons/Device/Emergency/__test__/EmergencyDetail.test.js +10 -2
  43. package/src/commons/Device/FlatListItems.js +1 -1
  44. package/src/commons/Device/ItemAddNew/index.js +6 -1
  45. package/src/commons/Device/WindDirection/Compass/Compass.test.js +19 -11
  46. package/src/commons/Device/WindSpeed/LinearChart/__test__/LinearChart.test.js +9 -3
  47. package/src/commons/Device/WindSpeed/LinearChart/__test__/__snapshots__/LinearChart.test.js.snap +0 -81
  48. package/src/commons/Device/__test__/ConnectedViewHeader.test.js +16 -8
  49. package/src/commons/Device/__test__/DeviceAlertStatus.test.js +13 -6
  50. package/src/commons/Device/__test__/DisconnectedView.test.js +13 -5
  51. package/src/commons/Device/__test__/FlatListItems.test.js +9 -1
  52. package/src/commons/Device/__test__/FooterInfo.test.js +13 -4
  53. package/src/commons/Device/__test__/SensorConnectedStatus.test.js +9 -1
  54. package/src/commons/Device/__test__/__snapshots__/DisconnectedView.test.js.snap +20 -20
  55. package/src/commons/DisplayChecking/__test__/DisplayChecking.test.js +28 -0
  56. package/src/commons/Explore/SearchBox/__test__/SearchBox.test.js +9 -2
  57. package/src/commons/Explore/__test__/CityItem.test.js +13 -15
  58. package/src/commons/Explore/__test__/HeaderLabel.test.js +15 -9
  59. package/src/commons/Header/HeaderCustom.js +7 -1
  60. package/src/commons/Header/__test__/HeaderCT.test.js +12 -4
  61. package/src/commons/ImagePicker/__test__/ImagePicker.test.js +19 -13
  62. package/src/commons/MediaPlayerDetail/__test__/MediaPlayerDetail.test.js +14 -8
  63. package/src/commons/MediaPlayerDetail/index.js +2 -0
  64. package/src/commons/MenuActionAddnew/__test__/MenuActionAddNew.test.js +11 -20
  65. package/src/commons/Modal/ModalBottom.js +51 -0
  66. package/src/commons/Modal/Styles/ModalBottomStyles.js +35 -0
  67. package/src/commons/Modal/index.js +2 -1
  68. package/src/commons/SelectActionCard/SelectActionStyles.js +16 -0
  69. package/src/commons/SelectActionCard/index.js +30 -0
  70. package/src/commons/Sharing/__test__/DevicePermissionsCheckbox.test.js +15 -9
  71. package/src/commons/Sharing/__test__/MemberList.test.js +17 -25
  72. package/src/commons/Sharing/__test__/StationDevicePermission.test.js +17 -12
  73. package/src/commons/Sharing/__test__/WrapHeaderScrollable.test.js +0 -9
  74. package/src/commons/SubUnit/OneTap/ItemOneTap.js +20 -9
  75. package/src/commons/SubUnit/OneTap/__test__/SubUnitAutomate.test.js +149 -0
  76. package/src/commons/SubUnit/OneTap/index.js +16 -6
  77. package/src/commons/SubUnit/ShortDetail.js +9 -5
  78. package/src/commons/SubUnit/__test__/ShortDetail.test.js +14 -6
  79. package/src/commons/Today/__test__/Today.test.js +9 -1
  80. package/src/commons/Today/__test__/__snapshots__/Today.test.js.snap +1 -1
  81. package/src/commons/UnitSummary/AirQuality/__test__/index.test.js +16 -17
  82. package/src/commons/UnitSummary/__test__/TotalPowerConsumption.test.js +15 -9
  83. package/src/configs/API.js +6 -1
  84. package/src/configs/Constants.js +42 -0
  85. package/src/context/SCContext.tsx +2 -26
  86. package/src/context/actionType.ts +11 -0
  87. package/src/context/mockStore.ts +49 -0
  88. package/src/context/reducer.ts +21 -0
  89. package/src/hooks/Common/__test__/useTranslations.test.js +23 -0
  90. package/src/hooks/Common/index.js +2 -0
  91. package/src/hooks/Common/useGetIdUser.js +9 -0
  92. package/src/iot/RemoteControl/__test__/Bluetooth.test.js +3 -6
  93. package/src/iot/RemoteControl/__test__/GoogleHome.test.js +3 -4
  94. package/src/iot/RemoteControl/__test__/Internet.test.js +1 -9
  95. package/src/iot/RemoteControl/__test__/LgThinq.test.js +7 -10
  96. package/src/navigations/UnitStack.js +14 -0
  97. package/src/screens/AQIGuide/__test__/AQIGuide.test.js +9 -1
  98. package/src/screens/AQIGuide/index.js +1 -1
  99. package/src/screens/ActivityLog/__test__/index.test.js +14 -39
  100. package/src/screens/AddCommon/SelectSubUnit.js +2 -2
  101. package/src/screens/AddCommon/__test__/SelectSubUnit.test.js +61 -0
  102. package/src/screens/AddCommon/__test__/SelectUnit.test.js +18 -10
  103. package/src/screens/AddNewAction/Device/__test__/index.test.js +42 -0
  104. package/src/screens/AddNewAction/SelectAction.js +152 -0
  105. package/src/screens/AddNewAction/SelectDevice.js +25 -11
  106. package/src/screens/AddNewAction/Styles/SelectActionStyles.js +24 -0
  107. package/src/screens/AddNewAction/__test__/SelectAction.test.js +172 -0
  108. package/src/screens/AddNewAction/__test__/SelectDevice.test.js +191 -0
  109. package/src/screens/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +55 -0
  110. package/src/screens/AddNewAutoSmart/index.js +85 -0
  111. package/src/screens/AddNewAutoSmart/styles/AddNewAutoSmartStyles.js +36 -0
  112. package/src/screens/AddNewDevice/__test__/AddNewDevice.test.js +29 -14
  113. package/src/screens/AddNewDevice/__test__/ConnectDevices.test.js +19 -8
  114. package/src/screens/AddNewDevice/__test__/ConnectingDevices.test.js +16 -7
  115. package/src/screens/AddNewGateway/__test__/AddNewGateway.test.js +35 -73
  116. package/src/screens/AddNewGateway/__test__/ConnectedGateway.test.js +14 -5
  117. package/src/screens/AddNewGateway/__test__/ConnectingGateway.test.js +20 -11
  118. package/src/screens/AddNewOneTap/__test__/AddNewOneTap.test.js +129 -0
  119. package/src/screens/AddNewOneTap/index.js +20 -7
  120. package/src/screens/AddNewScriptAction/AddNewScriptActionStyles.js +1 -0
  121. package/src/screens/AddNewScriptAction/index.js +21 -13
  122. package/src/screens/Device/__test__/detail.test.js +26 -19
  123. package/src/screens/Device/detail.js +5 -4
  124. package/src/screens/Device/hooks/useCountUp.js +4 -0
  125. package/src/screens/Device/styles.js +5 -1
  126. package/src/screens/DeviceInfo/__test__/index.test.js +12 -3
  127. package/src/screens/EditActionsList/Styles/indexStyles.js +11 -0
  128. package/src/screens/EditActionsList/index.js +83 -19
  129. package/src/screens/EmergencyContacts/__test__/EmergencyContactAddNew.test.js +15 -19
  130. package/src/screens/EmergencyContacts/__test__/EmergencyContactList.test.js +19 -24
  131. package/src/screens/EmergencyContacts/__test__/EmergencyContactsSelectContacts.test.js +10 -25
  132. package/src/screens/ManageAccess/__test__/ManageAccess.test.js +13 -1
  133. package/src/screens/ScanChipQR/__test__/ScanChipQR.test.js +2 -11
  134. package/src/screens/ScriptDetail/Styles/indexStyles.js +4 -1
  135. package/src/screens/ScriptDetail/index.js +30 -28
  136. package/src/screens/SharedUnit/__test__/TabHeader.test.js +40 -0
  137. package/src/screens/Sharing/__test__/MemberList.test.js +17 -14
  138. package/src/screens/Sharing/__test__/SelectPermission.test.js +16 -8
  139. package/src/screens/Sharing/__test__/SelectUser.test.js +33 -16
  140. package/src/screens/SubUnit/Detail.js +3 -3
  141. package/src/screens/SubUnit/ManageSubUnit.js +8 -8
  142. package/src/screens/SubUnit/__test__/AddSubUnit.test.js +17 -12
  143. package/src/screens/SubUnit/__test__/Detail.test.js +11 -31
  144. package/src/screens/SubUnit/__test__/ManageSubUnit.test.js +42 -32
  145. package/src/screens/TDSGuide/__test__/TDSGuide.test.js +9 -1
  146. package/src/screens/UVIndexGuide/__test__/UVIndexGuide.test.js +9 -1
  147. package/src/screens/Unit/Detail.js +33 -11
  148. package/src/screens/Unit/ManageUnit.js +1 -1
  149. package/src/screens/Unit/__test__/AddMenu.test.js +15 -15
  150. package/src/screens/Unit/__test__/CheckSendEmail.test.js +19 -10
  151. package/src/screens/Unit/__test__/Detail.test.js +92 -33
  152. package/src/screens/Unit/__test__/ManageUnit.test.js +16 -23
  153. package/src/screens/Unit/components/__test__/SharedUnit.test.js +11 -2
  154. package/src/screens/UnitSummary/__test__/index.test.js +12 -4
  155. package/src/screens/UnitSummary/components/3PPowerConsumption/__test__/3PPowerConsumption.test.js +13 -3
  156. package/src/screens/UnitSummary/components/PowerConsumption/__test__/PowerConsumption.test.js +16 -12
  157. package/src/screens/UnitSummary/components/RunningDevices/__test__/index.test.js +2 -2
  158. package/src/screens/UnitSummary/components/UvIndex/__test__/__snapshots__/index.test.js.snap +37 -37
  159. package/src/screens/UnitSummary/components/UvIndex/__test__/index.test.js +14 -6
  160. package/src/screens/UnitSummary/components/WaterQuality/__test__/index.test.js +11 -5
  161. package/src/screens/UnitSummary/components/__test__/TotalPowerConsumption.test.js +13 -7
  162. package/src/screens/WaterQualityGuide/__test__/index.test.js +12 -12
  163. package/src/utils/I18n/translations/en.json +9 -2
  164. package/src/utils/I18n/translations/vi.json +10 -3
  165. package/src/utils/Route/index.js +3 -2
  166. package/assets/images/Event.svg +0 -9
  167. package/src/commons/ChartLoading/__test__/__snapshots__/ChartLoading.test.js.snap +0 -66
  168. package/src/commons/Device/HistoryChart/__test__/HistoryChart.test.js +0 -57
  169. package/src/commons/Device/HistoryChart/__test__/__snapshots__/HistoryChart.test.js.snap +0 -593
  170. package/src/commons/Explore/SearchBox/__test__/__snapshots__/SearchBox.test.js.snap +0 -59
  171. package/src/commons/Explore/__test__/HeaderExplore.test.js +0 -21
  172. package/src/commons/Header/__test__/Header.test.js +0 -24
  173. package/src/commons/MenuActionAddnew/__test__/__snapshots__/MenuActionAddNew.test.js.snap +0 -788
  174. package/src/commons/Sharing/__test__/__snapshots__/WrapHeaderScrollable.test.js.snap +0 -174
  175. package/src/commons/UnitSummary/AirQuality/__test__/__snapshots__/index.test.js.snap +0 -26679
  176. package/src/iot/RemoteControl/__test__/index.test.js +0 -102
  177. package/src/iot/__test__/Monitor.test.js +0 -119
  178. package/src/navigations/AddNewActionStack.js +0 -23
  179. package/src/screens/EmergencyContacts/__test__/__snapshots__/EmergencyContactAddNew.test.js.snap +0 -1706
  180. package/src/screens/EmergencyContacts/__test__/__snapshots__/EmergencyContactList.test.js.snap +0 -4276
  181. package/src/screens/EmergencyContacts/__test__/__snapshots__/EmergencyContactsSelectContacts.test.js.snap +0 -2240
  182. package/src/screens/SyncLGDevice/__test__/AddLGDevice.test.js +0 -359
  183. package/src/screens/Unit/MyAllUnit/__test__/__snapshots__/index.test.js.snap +0 -1001
  184. package/src/screens/Unit/MyAllUnit/__test__/index.test.js +0 -48
  185. package/src/screens/Unit/components/MyAllUnit/__test__/__snapshots__/index.test.js.snap +0 -1001
  186. package/src/screens/Unit/components/MyAllUnit/__test__/index.test.js +0 -48
  187. package/src/screens/Unit/components/__test__/MyUnit.test.js +0 -85
  188. package/src/screens/UnitSummary/components/WaterQuality/__test__/__snapshots__/index.test.js.snap +0 -1574
  189. package/src/screens/WaterQualityGuide/__test__/__snapshots__/index.test.js.snap +0 -3375
  190. package/src/utils/Converter/__test__/time.test.js +0 -128
  191. package/src/utils/I18n/index.test.js +0 -7
@@ -1,1001 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Test MyAllUnit goback 1`] = `
4
- <RCTSafeAreaView
5
- emulateUnlessSupported={true}
6
- style={
7
- Array [
8
- Object {
9
- "flex": 1,
10
- },
11
- Object {
12
- "backgroundColor": "#FFFFFF",
13
- },
14
- ]
15
- }
16
- >
17
- <View
18
- style={
19
- Array [
20
- undefined,
21
- Object {
22
- "justifyContent": "center",
23
- },
24
- ]
25
- }
26
- >
27
- <Modal
28
- animationType="none"
29
- deviceHeight={null}
30
- deviceWidth={null}
31
- hardwareAccelerated={false}
32
- hideModalContentWhileAnimating={false}
33
- onBackdropPress={[Function]}
34
- onModalHide={[Function]}
35
- onModalWillHide={[Function]}
36
- onModalWillShow={[Function]}
37
- onRequestClose={[Function]}
38
- panResponderThreshold={4}
39
- scrollHorizontal={false}
40
- scrollOffset={0}
41
- scrollOffsetMax={0}
42
- scrollTo={null}
43
- supportedOrientations={
44
- Array [
45
- "portrait",
46
- "landscape",
47
- ]
48
- }
49
- swipeThreshold={100}
50
- transparent={true}
51
- visible={false}
52
- >
53
- <View
54
- accessible={true}
55
- focusable={true}
56
- forwardedRef={[Function]}
57
- onClick={[Function]}
58
- onResponderGrant={[Function]}
59
- onResponderMove={[Function]}
60
- onResponderRelease={[Function]}
61
- onResponderTerminate={[Function]}
62
- onResponderTerminationRequest={[Function]}
63
- onStartShouldSetResponder={[Function]}
64
- style={
65
- Object {
66
- "backgroundColor": "black",
67
- "bottom": 0,
68
- "height": 1334,
69
- "left": 0,
70
- "opacity": 0,
71
- "position": "absolute",
72
- "right": 0,
73
- "top": 0,
74
- "width": 750,
75
- }
76
- }
77
- />
78
- <View
79
- deviceHeight={null}
80
- deviceWidth={null}
81
- forwardedRef={[Function]}
82
- hideModalContentWhileAnimating={false}
83
- onBackdropPress={[Function]}
84
- onModalHide={[Function]}
85
- onModalWillHide={[Function]}
86
- onModalWillShow={[Function]}
87
- panResponderThreshold={4}
88
- pointerEvents="box-none"
89
- scrollHorizontal={false}
90
- scrollOffset={0}
91
- scrollOffsetMax={0}
92
- scrollTo={null}
93
- style={
94
- Object {
95
- "flex": 1,
96
- "justifyContent": "center",
97
- "margin": 0,
98
- "transform": Array [
99
- Object {
100
- "translateY": 0,
101
- },
102
- ],
103
- }
104
- }
105
- supportedOrientations={
106
- Array [
107
- "portrait",
108
- "landscape",
109
- ]
110
- }
111
- swipeThreshold={100}
112
- >
113
- <View
114
- style={
115
- Object {
116
- "backgroundColor": "#FFFFFF",
117
- "borderRadius": 10,
118
- "bottom": 0,
119
- "left": 0,
120
- "position": "absolute",
121
- "width": 750,
122
- }
123
- }
124
- >
125
- <View
126
- style={
127
- Object {
128
- "backgroundColor": "#FFFFFF",
129
- "borderRadius": 10,
130
- "flex": 1,
131
- "flexDirection": "column",
132
- }
133
- }
134
- >
135
- <View
136
- style={
137
- Object {
138
- "alignItems": "center",
139
- "backgroundColor": "#FFFFFF",
140
- "borderBottomWidth": 1,
141
- "borderColor": "#E8E8E8",
142
- "borderTopLeftRadius": 20,
143
- "borderTopRightRadius": 20,
144
- "justifyContent": "center",
145
- "padding": 16,
146
- }
147
- }
148
- >
149
- <Text
150
- style={
151
- Array [
152
- Object {
153
- "color": "#000",
154
- "fontFamily": "SFProDisplay-Regular",
155
- "fontSize": undefined,
156
- "lineHeight": undefined,
157
- "textAlign": "left",
158
- "textDecorationLine": "none",
159
- },
160
- Object {
161
- "color": "#262626",
162
- "fontSize": 16,
163
- "lineHeight": 24,
164
- },
165
- ]
166
- }
167
- >
168
- Thêm
169
- </Text>
170
- </View>
171
- <View
172
- style={
173
- Object {
174
- "alignItems": "center",
175
- "flex": 1,
176
- "flexDirection": "row",
177
- "flexWrap": "wrap",
178
- "justifyContent": "center",
179
- "padding": 16,
180
- }
181
- }
182
- >
183
- <View
184
- style={
185
- Object {
186
- "alignItems": "center",
187
- "flexBasis": "33.33%",
188
- "justifyContent": "center",
189
- }
190
- }
191
- >
192
- <View
193
- accessible={true}
194
- focusable={true}
195
- onClick={[Function]}
196
- onResponderGrant={[Function]}
197
- onResponderMove={[Function]}
198
- onResponderRelease={[Function]}
199
- onResponderTerminate={[Function]}
200
- onResponderTerminationRequest={[Function]}
201
- onStartShouldSetResponder={[Function]}
202
- style={
203
- Object {
204
- "flex": 1,
205
- "opacity": 1,
206
- }
207
- }
208
- >
209
- <View
210
- style={
211
- Array [
212
- undefined,
213
- undefined,
214
- undefined,
215
- ]
216
- }
217
- >
218
- <SvgMock
219
- height={43}
220
- width={43}
221
- />
222
- </View>
223
- </View>
224
- <View
225
- style={
226
- Object {
227
- "marginTop": 10,
228
- }
229
- }
230
- >
231
- <Text
232
- style={
233
- Array [
234
- Object {
235
- "color": "#000",
236
- "fontFamily": "SFProDisplay-Regular",
237
- "fontSize": undefined,
238
- "lineHeight": undefined,
239
- "textAlign": "left",
240
- "textDecorationLine": "none",
241
- },
242
- Object {},
243
- ]
244
- }
245
- styles={
246
- Object {
247
- "color": "#595959",
248
- "fontSize": 14,
249
- "lineHeight": 30,
250
- }
251
- }
252
- >
253
- Thành viên
254
- </Text>
255
- </View>
256
- </View>
257
- </View>
258
- </View>
259
- </View>
260
- </View>
261
- </Modal>
262
- <Modal
263
- hardwareAccelerated={true}
264
- onDismiss={[Function]}
265
- onRequestClose={[Function]}
266
- onShow={[Function]}
267
- supportedOrientations={
268
- Array [
269
- "portrait",
270
- "portrait-upside-down",
271
- "landscape",
272
- ]
273
- }
274
- transparent={true}
275
- visible={false}
276
- />
277
- <View
278
- style={
279
- Array [
280
- Object {
281
- "alignItems": "center",
282
- "backgroundColor": "#FFFFFF",
283
- "flexDirection": "row",
284
- },
285
- Object {
286
- "backgroundColor": "transparent",
287
- },
288
- ]
289
- }
290
- >
291
- <View
292
- onLayout={[Function]}
293
- style={
294
- Array [
295
- Object {
296
- "justifyContent": "center",
297
- },
298
- Object {
299
- "minWidth": 0,
300
- },
301
- ]
302
- }
303
- >
304
- <View
305
- accessible={true}
306
- focusable={true}
307
- onClick={[Function]}
308
- onResponderGrant={[Function]}
309
- onResponderMove={[Function]}
310
- onResponderRelease={[Function]}
311
- onResponderTerminate={[Function]}
312
- onResponderTerminationRequest={[Function]}
313
- onStartShouldSetResponder={[Function]}
314
- style={
315
- Object {
316
- "opacity": 1,
317
- "paddingLeft": 12,
318
- "paddingVertical": 0,
319
- }
320
- }
321
- testID="BACK_DEFAULT_TOUCH"
322
- >
323
- <Text
324
- style={
325
- Array [
326
- Object {
327
- "color": "#000000",
328
- "fontFamily": "antoutline",
329
- "fontSize": 27,
330
- "fontStyle": "normal",
331
- "fontWeight": "normal",
332
- },
333
- undefined,
334
- ]
335
- }
336
- >
337
-
338
- </Text>
339
- </View>
340
- </View>
341
- <View
342
- style={
343
- Object {
344
- "alignItems": "center",
345
- "flex": 1,
346
- "justifyContent": "center",
347
- }
348
- }
349
- >
350
- <Text
351
- numberOfLines={1}
352
- style={
353
- Array [
354
- Object {
355
- "color": "#000",
356
- "fontFamily": "SFProDisplay-Bold",
357
- "fontSize": undefined,
358
- "lineHeight": undefined,
359
- "textAlign": "left",
360
- "textDecorationLine": "none",
361
- },
362
- Object {
363
- "fontSize": 16,
364
- },
365
- ]
366
- }
367
- />
368
- </View>
369
- <View
370
- onLayout={[Function]}
371
- style={
372
- Array [
373
- Object {
374
- "justifyContent": "center",
375
- },
376
- Object {
377
- "minWidth": 0,
378
- },
379
- ]
380
- }
381
- >
382
- <View
383
- style={
384
- Object {
385
- "flexDirection": "row",
386
- "paddingLeft": 5,
387
- "paddingRight": 15,
388
- "paddingTop": 2,
389
- }
390
- }
391
- >
392
- <View
393
- accessible={true}
394
- focusable={true}
395
- onClick={[Function]}
396
- onResponderGrant={[Function]}
397
- onResponderMove={[Function]}
398
- onResponderRelease={[Function]}
399
- onResponderTerminate={[Function]}
400
- onResponderTerminationRequest={[Function]}
401
- onStartShouldSetResponder={[Function]}
402
- style={
403
- Object {
404
- "alignItems": "center",
405
- "alignSelf": "flex-end",
406
- "flexDirection": "row",
407
- "opacity": 1,
408
- }
409
- }
410
- >
411
- <Text
412
- style={
413
- Array [
414
- Object {
415
- "color": "#000000",
416
- "fontFamily": "antoutline",
417
- "fontSize": 32,
418
- "fontStyle": "normal",
419
- "fontWeight": "normal",
420
- },
421
- undefined,
422
- ]
423
- }
424
- >
425
-
426
- </Text>
427
- </View>
428
- <View
429
- accessible={true}
430
- focusable={true}
431
- onClick={[Function]}
432
- onResponderGrant={[Function]}
433
- onResponderMove={[Function]}
434
- onResponderRelease={[Function]}
435
- onResponderTerminate={[Function]}
436
- onResponderTerminationRequest={[Function]}
437
- onStartShouldSetResponder={[Function]}
438
- style={
439
- Object {
440
- "alignItems": "center",
441
- "alignSelf": "flex-end",
442
- "flexDirection": "row",
443
- "opacity": 1,
444
- }
445
- }
446
- >
447
- <Text
448
- style={
449
- Array [
450
- Object {
451
- "color": "#000000",
452
- "fontFamily": "antoutline",
453
- "fontSize": 30,
454
- "fontStyle": "normal",
455
- "fontWeight": "normal",
456
- },
457
- undefined,
458
- ]
459
- }
460
- >
461
-
462
- </Text>
463
- </View>
464
- </View>
465
- </View>
466
- </View>
467
- </View>
468
- <RCTScrollView
469
- contentContainerStyle={
470
- Object {
471
- "flex": 1,
472
- }
473
- }
474
- onScroll={[Function]}
475
- scrollEventThrottle={1}
476
- >
477
- <View>
478
- <View
479
- style={
480
- Object {
481
- "backgroundColor": "#FFFFFF",
482
- "flex": 1,
483
- }
484
- }
485
- >
486
- <RCTScrollView
487
- contentContainerStyle={
488
- Object {
489
- "paddingTop": 20,
490
- }
491
- }
492
- onScroll={[Function]}
493
- scrollEventThrottle={1}
494
- >
495
- <View />
496
- </RCTScrollView>
497
- </View>
498
- </View>
499
- </RCTScrollView>
500
- </RCTSafeAreaView>
501
- `;
502
-
503
- exports[`Test MyAllUnit render MyAllUnit 1`] = `
504
- <RCTSafeAreaView
505
- emulateUnlessSupported={true}
506
- style={
507
- Array [
508
- Object {
509
- "flex": 1,
510
- },
511
- Object {
512
- "backgroundColor": "#FFFFFF",
513
- },
514
- ]
515
- }
516
- >
517
- <View
518
- style={
519
- Array [
520
- undefined,
521
- Object {
522
- "justifyContent": "center",
523
- },
524
- ]
525
- }
526
- >
527
- <Modal
528
- animationType="none"
529
- deviceHeight={null}
530
- deviceWidth={null}
531
- hardwareAccelerated={false}
532
- hideModalContentWhileAnimating={false}
533
- onBackdropPress={[Function]}
534
- onModalHide={[Function]}
535
- onModalWillHide={[Function]}
536
- onModalWillShow={[Function]}
537
- onRequestClose={[Function]}
538
- panResponderThreshold={4}
539
- scrollHorizontal={false}
540
- scrollOffset={0}
541
- scrollOffsetMax={0}
542
- scrollTo={null}
543
- supportedOrientations={
544
- Array [
545
- "portrait",
546
- "landscape",
547
- ]
548
- }
549
- swipeThreshold={100}
550
- transparent={true}
551
- visible={false}
552
- >
553
- <View
554
- accessible={true}
555
- focusable={true}
556
- forwardedRef={[Function]}
557
- onClick={[Function]}
558
- onResponderGrant={[Function]}
559
- onResponderMove={[Function]}
560
- onResponderRelease={[Function]}
561
- onResponderTerminate={[Function]}
562
- onResponderTerminationRequest={[Function]}
563
- onStartShouldSetResponder={[Function]}
564
- style={
565
- Object {
566
- "backgroundColor": "black",
567
- "bottom": 0,
568
- "height": 1334,
569
- "left": 0,
570
- "opacity": 0,
571
- "position": "absolute",
572
- "right": 0,
573
- "top": 0,
574
- "width": 750,
575
- }
576
- }
577
- />
578
- <View
579
- deviceHeight={null}
580
- deviceWidth={null}
581
- forwardedRef={[Function]}
582
- hideModalContentWhileAnimating={false}
583
- onBackdropPress={[Function]}
584
- onModalHide={[Function]}
585
- onModalWillHide={[Function]}
586
- onModalWillShow={[Function]}
587
- panResponderThreshold={4}
588
- pointerEvents="box-none"
589
- scrollHorizontal={false}
590
- scrollOffset={0}
591
- scrollOffsetMax={0}
592
- scrollTo={null}
593
- style={
594
- Object {
595
- "flex": 1,
596
- "justifyContent": "center",
597
- "margin": 0,
598
- "transform": Array [
599
- Object {
600
- "translateY": 0,
601
- },
602
- ],
603
- }
604
- }
605
- supportedOrientations={
606
- Array [
607
- "portrait",
608
- "landscape",
609
- ]
610
- }
611
- swipeThreshold={100}
612
- >
613
- <View
614
- style={
615
- Object {
616
- "backgroundColor": "#FFFFFF",
617
- "borderRadius": 10,
618
- "bottom": 0,
619
- "left": 0,
620
- "position": "absolute",
621
- "width": 750,
622
- }
623
- }
624
- >
625
- <View
626
- style={
627
- Object {
628
- "backgroundColor": "#FFFFFF",
629
- "borderRadius": 10,
630
- "flex": 1,
631
- "flexDirection": "column",
632
- }
633
- }
634
- >
635
- <View
636
- style={
637
- Object {
638
- "alignItems": "center",
639
- "backgroundColor": "#FFFFFF",
640
- "borderBottomWidth": 1,
641
- "borderColor": "#E8E8E8",
642
- "borderTopLeftRadius": 20,
643
- "borderTopRightRadius": 20,
644
- "justifyContent": "center",
645
- "padding": 16,
646
- }
647
- }
648
- >
649
- <Text
650
- style={
651
- Array [
652
- Object {
653
- "color": "#000",
654
- "fontFamily": "SFProDisplay-Regular",
655
- "fontSize": undefined,
656
- "lineHeight": undefined,
657
- "textAlign": "left",
658
- "textDecorationLine": "none",
659
- },
660
- Object {
661
- "color": "#262626",
662
- "fontSize": 16,
663
- "lineHeight": 24,
664
- },
665
- ]
666
- }
667
- >
668
- Thêm
669
- </Text>
670
- </View>
671
- <View
672
- style={
673
- Object {
674
- "alignItems": "center",
675
- "flex": 1,
676
- "flexDirection": "row",
677
- "flexWrap": "wrap",
678
- "justifyContent": "center",
679
- "padding": 16,
680
- }
681
- }
682
- >
683
- <View
684
- style={
685
- Object {
686
- "alignItems": "center",
687
- "flexBasis": "33.33%",
688
- "justifyContent": "center",
689
- }
690
- }
691
- >
692
- <View
693
- accessible={true}
694
- focusable={true}
695
- onClick={[Function]}
696
- onResponderGrant={[Function]}
697
- onResponderMove={[Function]}
698
- onResponderRelease={[Function]}
699
- onResponderTerminate={[Function]}
700
- onResponderTerminationRequest={[Function]}
701
- onStartShouldSetResponder={[Function]}
702
- style={
703
- Object {
704
- "flex": 1,
705
- "opacity": 1,
706
- }
707
- }
708
- >
709
- <View
710
- style={
711
- Array [
712
- undefined,
713
- undefined,
714
- undefined,
715
- ]
716
- }
717
- >
718
- <SvgMock
719
- height={43}
720
- width={43}
721
- />
722
- </View>
723
- </View>
724
- <View
725
- style={
726
- Object {
727
- "marginTop": 10,
728
- }
729
- }
730
- >
731
- <Text
732
- style={
733
- Array [
734
- Object {
735
- "color": "#000",
736
- "fontFamily": "SFProDisplay-Regular",
737
- "fontSize": undefined,
738
- "lineHeight": undefined,
739
- "textAlign": "left",
740
- "textDecorationLine": "none",
741
- },
742
- Object {},
743
- ]
744
- }
745
- styles={
746
- Object {
747
- "color": "#595959",
748
- "fontSize": 14,
749
- "lineHeight": 30,
750
- }
751
- }
752
- >
753
- Thành viên
754
- </Text>
755
- </View>
756
- </View>
757
- </View>
758
- </View>
759
- </View>
760
- </View>
761
- </Modal>
762
- <Modal
763
- hardwareAccelerated={true}
764
- onDismiss={[Function]}
765
- onRequestClose={[Function]}
766
- onShow={[Function]}
767
- supportedOrientations={
768
- Array [
769
- "portrait",
770
- "portrait-upside-down",
771
- "landscape",
772
- ]
773
- }
774
- transparent={true}
775
- visible={false}
776
- />
777
- <View
778
- style={
779
- Array [
780
- Object {
781
- "alignItems": "center",
782
- "backgroundColor": "#FFFFFF",
783
- "flexDirection": "row",
784
- },
785
- Object {
786
- "backgroundColor": "transparent",
787
- },
788
- ]
789
- }
790
- >
791
- <View
792
- onLayout={[Function]}
793
- style={
794
- Array [
795
- Object {
796
- "justifyContent": "center",
797
- },
798
- Object {
799
- "minWidth": 0,
800
- },
801
- ]
802
- }
803
- >
804
- <View
805
- accessible={true}
806
- focusable={true}
807
- onClick={[Function]}
808
- onResponderGrant={[Function]}
809
- onResponderMove={[Function]}
810
- onResponderRelease={[Function]}
811
- onResponderTerminate={[Function]}
812
- onResponderTerminationRequest={[Function]}
813
- onStartShouldSetResponder={[Function]}
814
- style={
815
- Object {
816
- "opacity": 1,
817
- "paddingLeft": 12,
818
- "paddingVertical": 0,
819
- }
820
- }
821
- testID="BACK_DEFAULT_TOUCH"
822
- >
823
- <Text
824
- style={
825
- Array [
826
- Object {
827
- "color": "#000000",
828
- "fontFamily": "antoutline",
829
- "fontSize": 27,
830
- "fontStyle": "normal",
831
- "fontWeight": "normal",
832
- },
833
- undefined,
834
- ]
835
- }
836
- >
837
-
838
- </Text>
839
- </View>
840
- </View>
841
- <View
842
- style={
843
- Object {
844
- "alignItems": "center",
845
- "flex": 1,
846
- "justifyContent": "center",
847
- }
848
- }
849
- >
850
- <Text
851
- numberOfLines={1}
852
- style={
853
- Array [
854
- Object {
855
- "color": "#000",
856
- "fontFamily": "SFProDisplay-Bold",
857
- "fontSize": undefined,
858
- "lineHeight": undefined,
859
- "textAlign": "left",
860
- "textDecorationLine": "none",
861
- },
862
- Object {
863
- "fontSize": 16,
864
- },
865
- ]
866
- }
867
- />
868
- </View>
869
- <View
870
- onLayout={[Function]}
871
- style={
872
- Array [
873
- Object {
874
- "justifyContent": "center",
875
- },
876
- Object {
877
- "minWidth": 0,
878
- },
879
- ]
880
- }
881
- >
882
- <View
883
- style={
884
- Object {
885
- "flexDirection": "row",
886
- "paddingLeft": 5,
887
- "paddingRight": 15,
888
- "paddingTop": 2,
889
- }
890
- }
891
- >
892
- <View
893
- accessible={true}
894
- focusable={true}
895
- onClick={[Function]}
896
- onResponderGrant={[Function]}
897
- onResponderMove={[Function]}
898
- onResponderRelease={[Function]}
899
- onResponderTerminate={[Function]}
900
- onResponderTerminationRequest={[Function]}
901
- onStartShouldSetResponder={[Function]}
902
- style={
903
- Object {
904
- "alignItems": "center",
905
- "alignSelf": "flex-end",
906
- "flexDirection": "row",
907
- "opacity": 1,
908
- }
909
- }
910
- >
911
- <Text
912
- style={
913
- Array [
914
- Object {
915
- "color": "#000000",
916
- "fontFamily": "antoutline",
917
- "fontSize": 32,
918
- "fontStyle": "normal",
919
- "fontWeight": "normal",
920
- },
921
- undefined,
922
- ]
923
- }
924
- >
925
-
926
- </Text>
927
- </View>
928
- <View
929
- accessible={true}
930
- focusable={true}
931
- onClick={[Function]}
932
- onResponderGrant={[Function]}
933
- onResponderMove={[Function]}
934
- onResponderRelease={[Function]}
935
- onResponderTerminate={[Function]}
936
- onResponderTerminationRequest={[Function]}
937
- onStartShouldSetResponder={[Function]}
938
- style={
939
- Object {
940
- "alignItems": "center",
941
- "alignSelf": "flex-end",
942
- "flexDirection": "row",
943
- "opacity": 1,
944
- }
945
- }
946
- >
947
- <Text
948
- style={
949
- Array [
950
- Object {
951
- "color": "#000000",
952
- "fontFamily": "antoutline",
953
- "fontSize": 30,
954
- "fontStyle": "normal",
955
- "fontWeight": "normal",
956
- },
957
- undefined,
958
- ]
959
- }
960
- >
961
-
962
- </Text>
963
- </View>
964
- </View>
965
- </View>
966
- </View>
967
- </View>
968
- <RCTScrollView
969
- contentContainerStyle={
970
- Object {
971
- "flex": 1,
972
- }
973
- }
974
- onScroll={[Function]}
975
- scrollEventThrottle={1}
976
- >
977
- <View>
978
- <View
979
- style={
980
- Object {
981
- "backgroundColor": "#FFFFFF",
982
- "flex": 1,
983
- }
984
- }
985
- >
986
- <RCTScrollView
987
- contentContainerStyle={
988
- Object {
989
- "paddingTop": 20,
990
- }
991
- }
992
- onScroll={[Function]}
993
- scrollEventThrottle={1}
994
- >
995
- <View />
996
- </RCTScrollView>
997
- </View>
998
- </View>
999
- </RCTScrollView>
1000
- </RCTSafeAreaView>
1001
- `;