@eohjsc/react-native-smart-city 0.2.21 → 0.2.27

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 (404) hide show
  1. package/README.md +1 -1
  2. package/assets/images/Add.svg +5 -0
  3. package/assets/images/AddLocationMaps/Point.svg +3 -0
  4. package/assets/images/CheckCircle.svg +4 -0
  5. package/assets/images/Close.svg +3 -0
  6. package/assets/images/HowToStart.svg +14 -0
  7. package/assets/images/Illustrations.svg +83 -0
  8. package/assets/images/OneTap.svg +14 -0
  9. package/assets/images/OneTap@1x.svg +14 -0
  10. package/assets/images/Rearrange.svg +3 -0
  11. package/assets/images/Schedule.svg +39 -0
  12. package/assets/images/ValueChange.svg +49 -0
  13. package/index.js +2 -0
  14. package/package.json +14 -2
  15. package/src/Images/Common/ActiveButton.png +0 -0
  16. package/src/Images/Common/ActiveButton@2x.png +0 -0
  17. package/src/Images/Common/ActiveButton@3x.png +0 -0
  18. package/src/Images/Common/arrow-back.png +0 -0
  19. package/src/Images/Common/checked@2x.png +0 -0
  20. package/src/Images/Common/checked@3x.png +0 -0
  21. package/src/Images/Common/file.png +0 -0
  22. package/src/Images/Common/fullscreen.png +0 -0
  23. package/src/Images/Common/refresh.png +0 -0
  24. package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +1 -1
  25. package/src/commons/ActionGroup/OnOffTemplate/index.js +9 -4
  26. package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +4 -3
  27. package/src/commons/ActionGroup/StatesGridActionTemplate.js +2 -2
  28. package/src/commons/ActionGroup/ThreeButtonTemplate.js +13 -6
  29. package/src/commons/ActionGroup/ThreeButtonTemplateStyle.js +1 -1
  30. package/src/commons/ActionGroup/TimerActionTemplate.js +158 -33
  31. package/src/commons/ActionGroup/__test__/NumberUpDownTemplate.test.js +294 -0
  32. package/src/commons/ActionGroup/__test__/NumberUpDownTemplateWithNullConfigValue.test.js +60 -0
  33. package/src/commons/ActionGroup/__test__/OnOffButtonTemplate.test.js +8 -13
  34. package/src/commons/ActionGroup/__test__/OnOffTemplate.test.js +3 -3
  35. package/src/commons/ActionGroup/__test__/OptionsDropdownTemplate.test.js +26 -45
  36. package/src/commons/ActionGroup/__test__/ThreeButtonTemplate.test.js +11 -5
  37. package/src/commons/ActionGroup/__test__/TimerActionTemplate.test.js +14 -8
  38. package/src/commons/ActionGroup/__test__/TimerActionTemplateWithutConfigValue.test.js +17 -23
  39. package/src/commons/ActionGroup/__test__/__snapshots__/ThreeButtonTemplate.test.js.snap +241 -223
  40. package/src/commons/ActionGroup/__test__/index.test.js +39 -107
  41. package/src/commons/ActionGroup/hooks/useDropdownAction.js +2 -1
  42. package/src/commons/ActionTemplate/ActionTemplateStyles.js +14 -0
  43. package/src/commons/ActionTemplate/OnOffButtonAction.js +40 -0
  44. package/src/commons/ActionTemplate/OnOffButtonActionStyles.js +11 -0
  45. package/src/commons/ActionTemplate/OneButtonAction.js +26 -0
  46. package/src/commons/ActionTemplate/OneButtonActionStyles.js +11 -0
  47. package/src/commons/ActionTemplate/ThreeButtonAction.js +55 -0
  48. package/src/commons/ActionTemplate/ThreeButtonActionStyles.js +11 -0
  49. package/src/commons/ActionTemplate/__test__/OnOffButtonAction.test.js +34 -0
  50. package/src/commons/ActionTemplate/__test__/OneButtonAction.test.js +33 -0
  51. package/src/commons/ActionTemplate/__test__/ThreeButtonAction.test.js +35 -0
  52. package/src/commons/ActionTemplate/__test__/index.test.js +71 -0
  53. package/src/commons/ActionTemplate/index.js +69 -0
  54. package/src/commons/AlertAction/__test__/AlertAction.test.js +6 -6
  55. package/src/commons/AlertAction/index.js +2 -0
  56. package/src/commons/Automate/ItemAddNewScriptActionStyles.js +38 -0
  57. package/src/commons/Automate/ItemAutomate.js +39 -0
  58. package/src/commons/Automate/ItemAutomateStyles.js +33 -0
  59. package/src/commons/Automate/ItemScriptAction.js +45 -0
  60. package/src/commons/Automate/ItemScriptActionStyles.js +42 -0
  61. package/src/commons/Automate/__test__/ItemAutomate.test.js +16 -0
  62. package/src/commons/Automate/__test__/ItemScriptAction.test.js +16 -0
  63. package/src/commons/BackDefault/__test__/BackDefault.test.js +21 -0
  64. package/src/commons/BottomScrollPicker/index.js +62 -0
  65. package/src/commons/BottomScrollPicker/styles.js +13 -0
  66. package/src/commons/BottomSheet/index.js +41 -0
  67. package/src/commons/BottomSheet/styles.js +37 -0
  68. package/src/commons/Button/index.js +6 -1
  69. package/src/commons/ButtonPopup/__test__/__snapshots__/ButtonPopup.test.js.snap +2 -0
  70. package/src/commons/ButtonPopup/index.js +2 -0
  71. package/src/commons/Calendar/index.js +72 -0
  72. package/src/commons/Calendar/styles.js +11 -0
  73. package/src/commons/CameraDevice/index.js +2 -1
  74. package/src/commons/ChartLoading/__test__/ChartLoading.test.js +9 -7
  75. package/src/commons/ChartLoading/index.js +2 -1
  76. package/src/commons/DateTimeRangeChange/index.js +2 -1
  77. package/src/commons/Device/ConnectedViewHeader.js +3 -1
  78. package/src/commons/Device/DeviceAlertStatus.js +5 -2
  79. package/src/commons/Device/DisconnectedView.js +34 -26
  80. package/src/commons/Device/Emergency/EmergencyButton.js +2 -1
  81. package/src/commons/Device/Emergency/EmergencyDetail.js +2 -1
  82. package/src/commons/Device/Emergency/__test__/EmergencyButton.test.js +14 -6
  83. package/src/commons/Device/Emergency/__test__/EmergencyDetail.test.js +10 -2
  84. package/src/commons/Device/FlatListItems.js +3 -2
  85. package/src/commons/Device/FooterInfo.js +2 -1
  86. package/src/commons/Device/HistoryChart.js +2 -1
  87. package/src/commons/Device/ItemAddNew/index.js +8 -3
  88. package/src/commons/Device/SensorConnectedStatus.js +2 -1
  89. package/src/commons/Device/WindDirection/Compass/Compass.test.js +19 -11
  90. package/src/commons/Device/WindDirection/Compass/index.js +1 -1
  91. package/src/commons/Device/WindSpeed/LinearChart/__test__/LinearChart.test.js +9 -3
  92. package/src/commons/Device/WindSpeed/LinearChart/__test__/__snapshots__/LinearChart.test.js.snap +0 -81
  93. package/src/commons/Device/WindSpeed/LinearChart/index.js +2 -1
  94. package/src/commons/Device/__test__/ConnectedViewHeader.test.js +16 -8
  95. package/src/commons/Device/__test__/DeviceAlertStatus.test.js +13 -5
  96. package/src/commons/Device/__test__/DisconnectedView.test.js +13 -5
  97. package/src/commons/Device/__test__/FlatListItems.test.js +9 -1
  98. package/src/commons/Device/__test__/FooterInfo.test.js +13 -4
  99. package/src/commons/Device/__test__/SensorConnectedStatus.test.js +9 -1
  100. package/src/commons/Device/__test__/__snapshots__/DisconnectedView.test.js.snap +20 -20
  101. package/src/commons/DisplayChecking/__test__/DisplayChecking.test.js +28 -0
  102. package/src/commons/EmergencyButton/AlertSendConfirm.js +2 -1
  103. package/src/commons/EmergencyButton/AlertSent.js +3 -2
  104. package/src/commons/Explore/CityItem/index.js +2 -1
  105. package/src/commons/Explore/HeaderExplore/index.js +2 -1
  106. package/src/commons/Explore/HeaderLabel/index.js +2 -1
  107. package/src/commons/Explore/SearchBox/__test__/SearchBox.test.js +9 -2
  108. package/src/commons/Explore/SearchBox/index.js +2 -1
  109. package/src/commons/Explore/__test__/CityItem.test.js +13 -15
  110. package/src/commons/Explore/__test__/HeaderExplore.test.js +11 -7
  111. package/src/commons/Explore/__test__/HeaderLabel.test.js +15 -9
  112. package/src/commons/Explore/__test__/LocationItem.test.js +31 -0
  113. package/src/commons/Header/HeaderCustom.js +22 -2
  114. package/src/commons/Header/Styles/HeaderCustomStyles.js +2 -2
  115. package/src/commons/Header/__test__/HeaderCT.test.js +12 -4
  116. package/src/commons/HeaderAni/index.js +36 -5
  117. package/src/commons/HorizontalPicker/index.js +134 -0
  118. package/src/commons/HorizontalPicker/styles.js +56 -0
  119. package/src/commons/ImagePicker/__test__/ImagePicker.test.js +19 -13
  120. package/src/commons/ImagePicker/index.js +3 -1
  121. package/src/commons/MediaPlayer/index.js +2 -1
  122. package/src/commons/MediaPlayerDetail/__test__/MediaPlayerDetail.test.js +14 -8
  123. package/src/commons/MediaPlayerDetail/index.js +4 -1
  124. package/src/commons/MenuActionAddnew/__test__/MenuActionAddNew.test.js +11 -20
  125. package/src/commons/MenuActionAddnew/index.js +2 -1
  126. package/src/commons/Modal/ModalBottom.js +51 -0
  127. package/src/commons/Modal/ModalFullVideo.js +2 -1
  128. package/src/commons/Modal/Styles/ModalBottomStyles.js +35 -0
  129. package/src/commons/Modal/__test__/ModalBottom.test.js +39 -0
  130. package/src/commons/Modal/index.js +2 -1
  131. package/src/commons/NavBar/index.js +2 -2
  132. package/src/commons/RowItem/__test__/RowItem.test.js +16 -0
  133. package/src/commons/RowItem/index.js +61 -0
  134. package/src/commons/RowItem/styles.js +53 -0
  135. package/src/commons/SelectActionCard/SelectActionStyles.js +16 -0
  136. package/src/commons/SelectActionCard/index.js +30 -0
  137. package/src/commons/Sharing/DevicePermissionsCheckbox.js +2 -1
  138. package/src/commons/Sharing/MemberList.js +3 -1
  139. package/src/commons/Sharing/RowMember.js +3 -2
  140. package/src/commons/Sharing/StationDevicePermissions.js +2 -1
  141. package/src/commons/Sharing/WrapHeaderScrollable.js +78 -74
  142. package/src/commons/Sharing/__test__/DevicePermissionsCheckbox.test.js +15 -9
  143. package/src/commons/Sharing/__test__/MemberList.test.js +17 -25
  144. package/src/commons/Sharing/__test__/StationDevicePermission.test.js +17 -12
  145. package/src/commons/Sharing/__test__/WrapHeaderScrollable.test.js +0 -9
  146. package/src/commons/SubUnit/OneTap/ItemOneTap.js +101 -0
  147. package/src/commons/SubUnit/OneTap/ItemOneTapStyles.js +41 -0
  148. package/src/commons/SubUnit/OneTap/OneTapStyles.js +36 -0
  149. package/src/commons/SubUnit/OneTap/__test__/SubUnitAutomate.test.js +195 -0
  150. package/src/commons/SubUnit/OneTap/index.js +39 -0
  151. package/src/commons/SubUnit/ShortDetail.js +11 -6
  152. package/src/commons/SubUnit/__test__/ShortDetail.test.js +14 -6
  153. package/src/commons/Today/__test__/Today.test.js +9 -1
  154. package/src/commons/Today/__test__/__snapshots__/Today.test.js.snap +1 -1
  155. package/src/commons/Today/index.js +2 -1
  156. package/src/commons/Unit/SharedUnit.js +2 -1
  157. package/src/commons/Unit/__test__/SharedUnit.test.js +330 -0
  158. package/src/commons/UnitSummary/AirQuality/SegmentedRoundDisplay/index.js +1 -2
  159. package/src/commons/UnitSummary/AirQuality/__test__/index.test.js +16 -17
  160. package/src/commons/UnitSummary/AirQuality/index.js +5 -120
  161. package/src/commons/UnitSummary/AirQuality/styles.js +112 -0
  162. package/src/commons/UnitSummary/TotalPowerConsumption/index.js +2 -1
  163. package/src/commons/UnitSummary/__test__/TotalPowerConsumption.test.js +15 -9
  164. package/src/commons/WheelDateTimePicker/Picker.js +57 -0
  165. package/src/commons/WheelDateTimePicker/index.js +168 -0
  166. package/src/commons/WheelDateTimePicker/styles.js +21 -0
  167. package/src/commons/index.js +2 -0
  168. package/src/configs/API.js +29 -0
  169. package/src/configs/Colors.js +1 -0
  170. package/src/configs/Constants.js +61 -0
  171. package/src/configs/Images.js +1 -0
  172. package/src/configs/SCConfig.js +7 -0
  173. package/src/configs/Theme.js +20 -0
  174. package/src/context/SCContext.tsx +9 -39
  175. package/src/context/actionType.ts +11 -0
  176. package/src/context/mockStore.ts +51 -0
  177. package/src/context/reducer.ts +23 -0
  178. package/src/hooks/Common/__test__/useStatusbar.test.js +28 -0
  179. package/src/hooks/Common/__test__/useTranslations.test.js +23 -0
  180. package/src/hooks/Common/index.js +2 -0
  181. package/src/hooks/Common/useGetIdUser.js +9 -0
  182. package/src/hooks/Common/useTranslations.ts +34 -0
  183. package/src/iot/Monitor.js +2 -1
  184. package/src/iot/RemoteControl/Bluetooth.js +2 -6
  185. package/src/iot/RemoteControl/GoogleHome.js +1 -1
  186. package/src/iot/RemoteControl/Internet.js +1 -1
  187. package/src/iot/RemoteControl/LG.js +57 -15
  188. package/src/iot/RemoteControl/__test__/Bluetooth.test.js +3 -5
  189. package/src/iot/RemoteControl/__test__/GoogleHome.test.js +3 -3
  190. package/src/iot/RemoteControl/__test__/Internet.test.js +1 -8
  191. package/src/iot/RemoteControl/__test__/LgThinq.test.js +7 -10
  192. package/src/iot/RemoteControl/index.js +1 -1
  193. package/src/iot/states.js +1 -0
  194. package/src/navigations/AutomateStack.js +45 -0
  195. package/src/navigations/SharedStack.js +2 -1
  196. package/src/navigations/UnitStack.js +86 -6
  197. package/src/navigations/utils.js +8 -0
  198. package/src/screens/AQIGuide/__test__/AQIGuide.test.js +9 -1
  199. package/src/screens/AQIGuide/index.js +2 -2
  200. package/src/screens/ActivityLog/__test__/index.test.js +14 -39
  201. package/src/screens/ActivityLog/index.js +2 -1
  202. package/src/screens/AddCommon/SelectSubUnit.js +5 -4
  203. package/src/screens/AddCommon/SelectUnit.js +3 -2
  204. package/src/screens/AddCommon/__test__/SelectSubUnit.test.js +61 -0
  205. package/src/screens/AddCommon/__test__/SelectUnit.test.js +18 -10
  206. package/src/screens/AddLocationMaps/index.js +2 -1
  207. package/src/screens/AddNewAction/Components/LoadingSelectAction.js +40 -0
  208. package/src/screens/AddNewAction/Components/index.js +3 -0
  209. package/src/screens/AddNewAction/Device/DeviceStyles.js +43 -0
  210. package/src/screens/AddNewAction/Device/__test__/index.test.js +42 -0
  211. package/src/screens/AddNewAction/Device/index.js +33 -0
  212. package/src/screens/AddNewAction/SelectAction.js +237 -0
  213. package/src/screens/AddNewAction/SelectSensorDevices.js +150 -0
  214. package/src/screens/AddNewAction/SetupSensor.js +221 -0
  215. package/src/screens/AddNewAction/Styles/SelectActionStyles.js +62 -0
  216. package/src/screens/AddNewAction/Styles/SelectSensorDevicesStyles.js +36 -0
  217. package/src/screens/AddNewAction/Styles/SetupSensorStyles.js +76 -0
  218. package/src/screens/AddNewAction/__test__/SelectAction.test.js +153 -0
  219. package/src/screens/AddNewAction/__test__/SelectSensorDevices.test.js +191 -0
  220. package/src/screens/AddNewAction/__test__/SetupSensor.test.js +125 -0
  221. package/src/screens/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +112 -0
  222. package/src/screens/AddNewAutoSmart/index.js +113 -0
  223. package/src/screens/AddNewAutoSmart/styles/AddNewAutoSmartStyles.js +36 -0
  224. package/src/screens/AddNewDevice/ConnectDevices.js +2 -1
  225. package/src/screens/AddNewDevice/ConnectingDevices.js +2 -1
  226. package/src/screens/AddNewDevice/__test__/AddNewDevice.test.js +29 -13
  227. package/src/screens/AddNewDevice/__test__/ConnectDevices.test.js +19 -7
  228. package/src/screens/AddNewDevice/__test__/ConnectingDevices.test.js +16 -6
  229. package/src/screens/AddNewDevice/hooks/useStateAlertRename.js +2 -1
  230. package/src/screens/AddNewDevice/index.js +2 -1
  231. package/src/screens/AddNewGateway/ConnectedGateway.js +2 -1
  232. package/src/screens/AddNewGateway/ConnectingGateway.js +99 -24
  233. package/src/screens/AddNewGateway/ConnectingGatewayStyles.js +92 -0
  234. package/src/screens/AddNewGateway/SetupGatewayWifi.js +3 -2
  235. package/src/screens/AddNewGateway/__test__/AddNewGateway.test.js +35 -72
  236. package/src/screens/AddNewGateway/__test__/ConnectedGateway.test.js +14 -4
  237. package/src/screens/AddNewGateway/__test__/ConnectingGateway.test.js +20 -10
  238. package/src/screens/AddNewGateway/hooks/useStateAlertRename.js +2 -1
  239. package/src/screens/AddNewGateway/index.js +2 -1
  240. package/src/screens/AddNewOneTap/AddNewOneTapStyles.js +44 -0
  241. package/src/screens/AddNewOneTap/__test__/AddNewOneTap.test.js +130 -0
  242. package/src/screens/AddNewOneTap/index.js +83 -0
  243. package/src/screens/AllCamera/__test__/index.test.js +103 -0
  244. package/src/screens/AllCamera/index.js +2 -1
  245. package/src/screens/Automate/Components/Loading.js +64 -0
  246. package/src/screens/Automate/Styles/indexStyles.js +64 -0
  247. package/src/screens/Automate/__test__/Loading.test.js +16 -0
  248. package/src/screens/Automate/__test__/index.test.js +93 -0
  249. package/src/screens/Automate/index.js +148 -0
  250. package/src/screens/Device/HeaderDevice/styles.js +2 -2
  251. package/src/screens/Device/__test__/detail.test.js +90 -18
  252. package/src/screens/Device/detail.js +73 -35
  253. package/src/screens/Device/hooks/useCountUp.js +4 -0
  254. package/src/screens/Device/hooks/useEmergencyButton.js +3 -2
  255. package/src/screens/Device/styles.js +5 -1
  256. package/src/screens/DeviceInfo/__test__/index.test.js +12 -3
  257. package/src/screens/DeviceInfo/index.js +2 -1
  258. package/src/screens/EditActionsList/Styles/indexStyles.js +84 -0
  259. package/src/screens/EditActionsList/index.js +186 -0
  260. package/src/screens/EmergencyContacts/EmergencyContactsAddNew.js +3 -2
  261. package/src/screens/EmergencyContacts/EmergencyContactsList.js +9 -2
  262. package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +2 -1
  263. package/src/screens/EmergencyContacts/__test__/EmergencyContactAddNew.test.js +15 -18
  264. package/src/screens/EmergencyContacts/__test__/EmergencyContactList.test.js +19 -23
  265. package/src/screens/EmergencyContacts/__test__/EmergencyContactsSelectContacts.test.js +10 -25
  266. package/src/screens/EmergencyContacts/hook.js +3 -2
  267. package/src/screens/Explore/index.js +3 -2
  268. package/src/screens/GuestInfo/__test__/index.test.js +176 -0
  269. package/src/screens/GuestInfo/components/AccessScheduleItem.js +32 -0
  270. package/src/screens/GuestInfo/components/AccessScheduleSheet.js +204 -0
  271. package/src/screens/GuestInfo/components/HeaderGuestInfo.js +36 -0
  272. package/src/screens/GuestInfo/components/RecurringDetail.js +106 -0
  273. package/src/screens/GuestInfo/components/RowGuestInfo.js +31 -0
  274. package/src/screens/GuestInfo/components/TemporaryDetail.js +53 -0
  275. package/src/screens/GuestInfo/constant.js +59 -0
  276. package/src/screens/GuestInfo/index.js +150 -0
  277. package/src/screens/GuestInfo/styles/AccessScheduleDetailStyles.js +31 -0
  278. package/src/screens/GuestInfo/styles/AccessScheduleItemStyles.js +22 -0
  279. package/src/screens/GuestInfo/styles/HeaderGuestInfoStyles.js +31 -0
  280. package/src/screens/GuestInfo/styles/indexStyles.js +38 -0
  281. package/src/screens/ManageAccess/__test__/ManageAccess.test.js +13 -1
  282. package/src/screens/ManageAccess/hooks/index.js +4 -0
  283. package/src/screens/ManageAccess/index.js +49 -20
  284. package/src/screens/ManageAccess/styles/ManageAccessStyles.js +3 -0
  285. package/src/screens/PlayBackCamera/Timer.js +1 -1
  286. package/src/screens/PlayBackCamera/index.js +9 -5
  287. package/src/screens/ScanChipQR/__test__/ScanChipQR.test.js +2 -11
  288. package/src/screens/ScanChipQR/components/QRScan/index.js +2 -1
  289. package/src/screens/ScriptDetail/Styles/indexStyles.js +157 -0
  290. package/src/screens/ScriptDetail/__test__/index.test.js +119 -0
  291. package/src/screens/ScriptDetail/hooks/index.js +55 -0
  292. package/src/screens/ScriptDetail/index.js +344 -0
  293. package/src/screens/SelectUnit/Styles/indexStyles.js +55 -0
  294. package/src/screens/SelectUnit/__test__/index.test.js +85 -0
  295. package/src/screens/SelectUnit/index.js +100 -0
  296. package/src/screens/SetSchedule/__test__/index.test.js +97 -0
  297. package/src/screens/SetSchedule/components/RepeatOptionsPopup.js +56 -0
  298. package/src/screens/SetSchedule/components/RowItem.js +27 -0
  299. package/src/screens/SetSchedule/components/SelectWeekday.js +65 -0
  300. package/src/screens/SetSchedule/index.js +139 -0
  301. package/src/screens/SetSchedule/styles/RepeatOptionsPopupStyles.js +22 -0
  302. package/src/screens/SetSchedule/styles/RowItemStyles.js +29 -0
  303. package/src/screens/SetSchedule/styles/SelectWeekdayStyles.js +26 -0
  304. package/src/screens/SetSchedule/styles/indexStyles.js +22 -0
  305. package/src/screens/SharedUnit/TabHeader.js +2 -1
  306. package/src/screens/SharedUnit/__test__/TabHeader.test.js +40 -0
  307. package/src/screens/SharedUnit/index.js +3 -2
  308. package/src/screens/Sharing/MemberList.js +2 -1
  309. package/src/screens/Sharing/SelectPermission.js +2 -1
  310. package/src/screens/Sharing/SelectUser.js +3 -2
  311. package/src/screens/Sharing/__test__/MemberList.test.js +25 -28
  312. package/src/screens/Sharing/__test__/SelectPermission.test.js +16 -8
  313. package/src/screens/Sharing/__test__/SelectUser.test.js +33 -15
  314. package/src/screens/Sharing/hooks/index.js +22 -17
  315. package/src/screens/SubUnit/AddSubUnit.js +3 -2
  316. package/src/screens/SubUnit/Detail.js +5 -4
  317. package/src/screens/SubUnit/EditSubUnit.js +274 -0
  318. package/src/screens/SubUnit/EditSubUnitStyles.js +119 -0
  319. package/src/screens/SubUnit/ManageSubUnit.js +114 -371
  320. package/src/screens/SubUnit/ManageSubUnitStyles.js +40 -0
  321. package/src/screens/SubUnit/__test__/AddSubUnit.test.js +17 -11
  322. package/src/screens/SubUnit/__test__/Detail.test.js +11 -31
  323. package/src/screens/SubUnit/__test__/EditSubUnit.test.js +427 -0
  324. package/src/screens/SubUnit/__test__/ManageSubUnit.test.js +51 -384
  325. package/src/screens/SubUnit/hooks/__test__/useManageSubUnit.test.js +85 -0
  326. package/src/screens/SubUnit/hooks/useManageSubUnit.js +35 -0
  327. package/src/screens/SyncLGDevice/AddLGDevice.js +3 -2
  328. package/src/screens/TDSGuide/__test__/TDSGuide.test.js +9 -1
  329. package/src/screens/TDSGuide/index.js +2 -1
  330. package/src/screens/UVIndexGuide/__test__/UVIndexGuide.test.js +9 -1
  331. package/src/screens/UVIndexGuide/index.js +2 -1
  332. package/src/screens/Unit/AddMenu.js +3 -2
  333. package/src/screens/Unit/Detail.js +66 -20
  334. package/src/screens/Unit/ManageUnit/index.js +4 -3
  335. package/src/screens/Unit/ManageUnit.js +15 -4
  336. package/src/screens/Unit/MoreMenu.js +3 -2
  337. package/src/screens/Unit/SelectLocation.js +8 -2
  338. package/src/screens/Unit/SelectLocationStyles.js +11 -0
  339. package/src/screens/Unit/__test__/AddMenu.test.js +15 -15
  340. package/src/screens/Unit/__test__/CheckSendEmail.test.js +19 -10
  341. package/src/screens/Unit/__test__/Detail.test.js +92 -33
  342. package/src/screens/Unit/__test__/ManageUnit.test.js +16 -23
  343. package/src/screens/Unit/components/Header/index.js +2 -1
  344. package/src/screens/Unit/components/ListMyAllUnit/index.js +2 -1
  345. package/src/screens/Unit/components/MyUnit/index.js +2 -1
  346. package/src/screens/Unit/components/SearchLocation/__test__/RowLocation.test.js +36 -0
  347. package/src/screens/Unit/components/SearchLocation/index.js +2 -1
  348. package/src/screens/Unit/components/SharedUnit/index.js +2 -1
  349. package/src/screens/Unit/components/__test__/MyUnit.test.js +22 -72
  350. package/src/screens/Unit/components/__test__/MyUnitDevice.test.js +32 -0
  351. package/src/screens/Unit/components/__test__/SharedUnit.test.js +11 -2
  352. package/src/screens/UnitSummary/__test__/index.test.js +12 -4
  353. package/src/screens/UnitSummary/components/3PPowerConsumption/__test__/3PPowerConsumption.test.js +13 -3
  354. package/src/screens/UnitSummary/components/3PPowerConsumption/index.js +2 -1
  355. package/src/screens/UnitSummary/components/PowerConsumption/__test__/PowerConsumption.test.js +16 -12
  356. package/src/screens/UnitSummary/components/PowerConsumption/index.js +2 -1
  357. package/src/screens/UnitSummary/components/RunningDevices/__test__/index.test.js +2 -2
  358. package/src/screens/UnitSummary/components/Temperature/index.js +2 -1
  359. package/src/screens/UnitSummary/components/TotalPowerConsumption/index.js +2 -1
  360. package/src/screens/UnitSummary/components/UvIndex/__test__/__snapshots__/index.test.js.snap +37 -37
  361. package/src/screens/UnitSummary/components/UvIndex/__test__/index.test.js +14 -6
  362. package/src/screens/UnitSummary/components/UvIndex/index.js +2 -1
  363. package/src/screens/UnitSummary/components/WaterQuality/__test__/index.test.js +11 -5
  364. package/src/screens/UnitSummary/components/WaterQuality/index.js +2 -1
  365. package/src/screens/UnitSummary/components/__test__/TotalPowerConsumption.test.js +13 -7
  366. package/src/screens/UnitSummary/components/__test__/UnitSummary.test.js +67 -0
  367. package/src/screens/UnitSummary/components/__test__/index.test.js +48 -0
  368. package/src/screens/UnitSummary/components/index.js +1 -37
  369. package/src/screens/UnitSummary/components/indexstyles.js +39 -0
  370. package/src/screens/UnitSummary/index.js +2 -1
  371. package/src/screens/WaterQualityGuide/__test__/index.test.js +12 -12
  372. package/src/screens/WaterQualityGuide/index.js +2 -1
  373. package/src/utils/Apis/axios.js +0 -4
  374. package/src/utils/Converter/array.js +4 -0
  375. package/src/utils/Converter/time.js +29 -4
  376. package/src/utils/I18n/index.ts +6 -0
  377. package/src/utils/I18n/translations/en.json +77 -5
  378. package/src/utils/I18n/translations/vi.json +73 -3
  379. package/src/utils/I18n/translations.ts +45 -0
  380. package/src/utils/Route/index.js +13 -0
  381. package/src/utils/__test__/InitData.test.js +20 -0
  382. package/src/commons/ChartLoading/__test__/__snapshots__/ChartLoading.test.js.snap +0 -66
  383. package/src/commons/Device/HistoryChart/__test__/HistoryChart.test.js +0 -57
  384. package/src/commons/Device/HistoryChart/__test__/__snapshots__/HistoryChart.test.js.snap +0 -593
  385. package/src/commons/Explore/SearchBox/__test__/__snapshots__/SearchBox.test.js.snap +0 -59
  386. package/src/commons/Header/__test__/Header.test.js +0 -24
  387. package/src/commons/MenuActionAddnew/__test__/__snapshots__/MenuActionAddNew.test.js.snap +0 -788
  388. package/src/commons/Sharing/__test__/__snapshots__/WrapHeaderScrollable.test.js.snap +0 -174
  389. package/src/commons/UnitSummary/AirQuality/__test__/__snapshots__/index.test.js.snap +0 -26679
  390. package/src/iot/RemoteControl/__test__/index.test.js +0 -101
  391. package/src/iot/__test__/Monitor.test.js +0 -119
  392. package/src/screens/EmergencyContacts/__test__/__snapshots__/EmergencyContactAddNew.test.js.snap +0 -1706
  393. package/src/screens/EmergencyContacts/__test__/__snapshots__/EmergencyContactList.test.js.snap +0 -4276
  394. package/src/screens/EmergencyContacts/__test__/__snapshots__/EmergencyContactsSelectContacts.test.js.snap +0 -2240
  395. package/src/screens/SyncLGDevice/__test__/AddLGDevice.test.js +0 -358
  396. package/src/screens/Unit/MyAllUnit/__test__/__snapshots__/index.test.js.snap +0 -1001
  397. package/src/screens/Unit/MyAllUnit/__test__/index.test.js +0 -48
  398. package/src/screens/Unit/components/MyAllUnit/__test__/__snapshots__/index.test.js.snap +0 -1001
  399. package/src/screens/Unit/components/MyAllUnit/__test__/index.test.js +0 -48
  400. package/src/screens/UnitSummary/components/WaterQuality/__test__/__snapshots__/index.test.js.snap +0 -1574
  401. package/src/screens/WaterQualityGuide/__test__/__snapshots__/index.test.js.snap +0 -3375
  402. package/src/utils/Converter/__test__/time.test.js +0 -126
  403. package/src/utils/I18n/index.js +0 -19
  404. package/src/utils/I18n/index.test.js +0 -7
@@ -1,2240 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`test EmergencyContactsSelectContacts onPressContact remove and add again from list 1`] = `
4
- <RCTSafeAreaView
5
- emulateUnlessSupported={true}
6
- style={
7
- Object {
8
- "backgroundColor": "#FAFAFA",
9
- "flex": 1,
10
- }
11
- }
12
- >
13
- <RCTSafeAreaView
14
- emulateUnlessSupported={true}
15
- style={
16
- Array [
17
- Object {
18
- "flex": 1,
19
- },
20
- undefined,
21
- ]
22
- }
23
- >
24
- <View
25
- style={
26
- Object {
27
- "backgroundColor": "transparent",
28
- "width": "100%",
29
- "zIndex": 2,
30
- }
31
- }
32
- >
33
- <View
34
- style={
35
- Object {
36
- "backgroundColor": "#FAFAFA",
37
- "borderColor": "#BFBFBF",
38
- "borderWidth": 0.5,
39
- "height": 88,
40
- "opacity": 0,
41
- "position": "absolute",
42
- "transform": Array [
43
- Object {
44
- "translateY": 0,
45
- },
46
- ],
47
- "width": "100%",
48
- }
49
- }
50
- />
51
- <View
52
- style={
53
- Object {
54
- "flexDirection": "row",
55
- "justifyContent": "space-between",
56
- }
57
- }
58
- >
59
- <View
60
- accessible={true}
61
- focusable={true}
62
- onClick={[Function]}
63
- onResponderGrant={[Function]}
64
- onResponderMove={[Function]}
65
- onResponderRelease={[Function]}
66
- onResponderTerminate={[Function]}
67
- onResponderTerminationRequest={[Function]}
68
- onStartShouldSetResponder={[Function]}
69
- style={
70
- Object {
71
- "alignItems": "center",
72
- "height": 44,
73
- "justifyContent": "center",
74
- "opacity": 1,
75
- "width": 44,
76
- }
77
- }
78
- >
79
- <Text
80
- style={
81
- Array [
82
- Object {
83
- "color": "#262626",
84
- "fontFamily": "antoutline",
85
- "fontSize": 27,
86
- "fontStyle": "normal",
87
- "fontWeight": "normal",
88
- },
89
- undefined,
90
- ]
91
- }
92
- >
93
-
94
- </Text>
95
- </View>
96
- <View
97
- styles={
98
- Object {
99
- "height": 44,
100
- "width": 44,
101
- }
102
- }
103
- />
104
- </View>
105
- <View
106
- style={
107
- Object {
108
- "backgroundColor": "transparent",
109
- "height": 44,
110
- "justifyContent": "center",
111
- "marginRight": 0,
112
- "transform": Array [
113
- Object {
114
- "translateY": 0,
115
- },
116
- Object {
117
- "translateX": 0,
118
- },
119
- Object {
120
- "scale": 1,
121
- },
122
- ],
123
- }
124
- }
125
- >
126
- <Text
127
- numberOfLines={1}
128
- style={
129
- Array [
130
- Object {
131
- "color": "#000",
132
- "fontFamily": "SFProDisplay-Semibold",
133
- "fontSize": 24,
134
- "lineHeight": 32,
135
- "textAlign": "left",
136
- "textDecorationLine": "none",
137
- },
138
- Object {
139
- "color": "#262626",
140
- "marginLeft": 16,
141
- "width": "100%",
142
- },
143
- ]
144
- }
145
- >
146
- Chọn liên hệ
147
- </Text>
148
- </View>
149
- </View>
150
- <RCTScrollView
151
- contentContainerStyle={
152
- Array [
153
- Object {
154
- "paddingBottom": 88,
155
- },
156
- undefined,
157
- ]
158
- }
159
- onMomentumScrollEnd={[Function]}
160
- onScroll={[Function]}
161
- refreshControl={
162
- <RefreshControlMock
163
- refreshing={false}
164
- />
165
- }
166
- scrollEventThrottle={16}
167
- showsVerticalScrollIndicator={false}
168
- style={
169
- Object {
170
- "flex": 1,
171
- "marginBottom": -88,
172
- "paddingTop": 16,
173
- "transform": Array [
174
- Object {
175
- "translateY": 0,
176
- },
177
- ],
178
- }
179
- }
180
- >
181
- <RCTRefreshControl />
182
- <View>
183
- <View
184
- style={
185
- Array [
186
- Object {
187
- "backgroundColor": "#FFFFFF",
188
- "borderColor": "#E8E8E8",
189
- "borderRadius": 20,
190
- "borderWidth": 1,
191
- "marginBottom": 16,
192
- "paddingBottom": 24,
193
- "paddingHorizontal": 16,
194
- "paddingTop": 8,
195
- },
196
- undefined,
197
- ]
198
- }
199
- >
200
- <View
201
- accessible={true}
202
- focusable={true}
203
- onClick={[Function]}
204
- onResponderGrant={[Function]}
205
- onResponderMove={[Function]}
206
- onResponderRelease={[Function]}
207
- onResponderTerminate={[Function]}
208
- onResponderTerminationRequest={[Function]}
209
- onStartShouldSetResponder={[Function]}
210
- style={
211
- Object {
212
- "alignItems": "center",
213
- "flexDirection": "row",
214
- "paddingVertical": 16,
215
- }
216
- }
217
- >
218
- <View
219
- style={
220
- Array [
221
- Object {
222
- "backgroundColor": "#ADC6FF",
223
- "borderColor": "white",
224
- "borderRadius": 20,
225
- "borderWidth": 0,
226
- "height": 40,
227
- "width": 40,
228
- },
229
- Object {
230
- "alignItems": "center",
231
- "justifyContent": "center",
232
- },
233
- undefined,
234
- ]
235
- }
236
- >
237
- <Text
238
- style={
239
- Array [
240
- Object {
241
- "color": "#FFFFFF",
242
- "fontFamily": "antoutline",
243
- "fontSize": 20,
244
- "fontStyle": "normal",
245
- "fontWeight": "normal",
246
- },
247
- undefined,
248
- ]
249
- }
250
- >
251
-
252
- </Text>
253
- </View>
254
- <View
255
- style={
256
- Object {
257
- "flex": 1,
258
- "marginLeft": 16,
259
- }
260
- }
261
- >
262
- <Text
263
- style={
264
- Array [
265
- Object {
266
- "color": "#262626",
267
- "fontFamily": "SFProDisplay-Regular",
268
- "fontSize": 16,
269
- "lineHeight": 24,
270
- "textAlign": "left",
271
- "textDecorationLine": "none",
272
- },
273
- Object {},
274
- ]
275
- }
276
- >
277
- Peter Pan
278
- </Text>
279
- <Text
280
- style={
281
- Array [
282
- Object {
283
- "color": "#BFBFBF",
284
- "fontFamily": "SFProDisplay-Regular",
285
- "fontSize": 12,
286
- "lineHeight": 20,
287
- "textAlign": "left",
288
- "textDecorationLine": "none",
289
- },
290
- Object {
291
- "marginTop": -1,
292
- },
293
- ]
294
- }
295
- >
296
- 0931245690
297
- </Text>
298
- </View>
299
- <View
300
- style={
301
- Array [
302
- Object {
303
- "height": "100%",
304
- "position": "absolute",
305
- "right": 0,
306
- "top": 8,
307
- },
308
- ]
309
- }
310
- >
311
- <View
312
- style={
313
- Object {
314
- "alignItems": "center",
315
- "height": 40,
316
- "justifyContent": "center",
317
- "width": 40,
318
- }
319
- }
320
- >
321
- <Text
322
- style={
323
- Array [
324
- Object {
325
- "color": "#00979D",
326
- "fontFamily": "antoutline",
327
- "fontSize": 20,
328
- "fontStyle": "normal",
329
- "fontWeight": "normal",
330
- },
331
- undefined,
332
- ]
333
- }
334
- >
335
-
336
- </Text>
337
- </View>
338
- </View>
339
- <View
340
- style={
341
- Object {
342
- "backgroundColor": "#E8E8E8",
343
- "bottom": 1,
344
- "height": 1,
345
- "left": 56,
346
- "position": "absolute",
347
- "right": 0,
348
- }
349
- }
350
- />
351
- </View>
352
- <View
353
- accessible={true}
354
- focusable={true}
355
- onClick={[Function]}
356
- onResponderGrant={[Function]}
357
- onResponderMove={[Function]}
358
- onResponderRelease={[Function]}
359
- onResponderTerminate={[Function]}
360
- onResponderTerminationRequest={[Function]}
361
- onStartShouldSetResponder={[Function]}
362
- style={
363
- Object {
364
- "alignItems": "center",
365
- "flexDirection": "row",
366
- "paddingVertical": 16,
367
- }
368
- }
369
- >
370
- <View
371
- style={
372
- Array [
373
- Object {
374
- "backgroundColor": "#D3ADF7",
375
- "borderColor": "white",
376
- "borderRadius": 20,
377
- "borderWidth": 0,
378
- "height": 40,
379
- "width": 40,
380
- },
381
- Object {
382
- "alignItems": "center",
383
- "justifyContent": "center",
384
- },
385
- undefined,
386
- ]
387
- }
388
- >
389
- <Text
390
- style={
391
- Array [
392
- Object {
393
- "color": "#FFFFFF",
394
- "fontFamily": "antoutline",
395
- "fontSize": 20,
396
- "fontStyle": "normal",
397
- "fontWeight": "normal",
398
- },
399
- undefined,
400
- ]
401
- }
402
- >
403
-
404
- </Text>
405
- </View>
406
- <View
407
- style={
408
- Object {
409
- "flex": 1,
410
- "marginLeft": 16,
411
- }
412
- }
413
- >
414
- <Text
415
- style={
416
- Array [
417
- Object {
418
- "color": "#262626",
419
- "fontFamily": "SFProDisplay-Regular",
420
- "fontSize": 16,
421
- "lineHeight": 24,
422
- "textAlign": "left",
423
- "textDecorationLine": "none",
424
- },
425
- Object {},
426
- ]
427
- }
428
- >
429
- John Wick
430
- </Text>
431
- <Text
432
- style={
433
- Array [
434
- Object {
435
- "color": "#BFBFBF",
436
- "fontFamily": "SFProDisplay-Regular",
437
- "fontSize": 12,
438
- "lineHeight": 20,
439
- "textAlign": "left",
440
- "textDecorationLine": "none",
441
- },
442
- Object {
443
- "marginTop": -1,
444
- },
445
- ]
446
- }
447
- >
448
- 0912345678
449
- </Text>
450
- </View>
451
- <View
452
- style={
453
- Array [
454
- Object {
455
- "height": "100%",
456
- "position": "absolute",
457
- "right": 0,
458
- "top": 8,
459
- },
460
- ]
461
- }
462
- >
463
- <View
464
- style={
465
- Object {
466
- "alignItems": "center",
467
- "height": 40,
468
- "justifyContent": "center",
469
- "width": 40,
470
- }
471
- }
472
- >
473
- <Text
474
- style={
475
- Array [
476
- Object {
477
- "color": "#00979D",
478
- "fontFamily": "antoutline",
479
- "fontSize": 20,
480
- "fontStyle": "normal",
481
- "fontWeight": "normal",
482
- },
483
- undefined,
484
- ]
485
- }
486
- >
487
-
488
- </Text>
489
- </View>
490
- </View>
491
- <View
492
- style={
493
- Object {
494
- "backgroundColor": "#E8E8E8",
495
- "bottom": 1,
496
- "height": 1,
497
- "left": 56,
498
- "position": "absolute",
499
- "right": 0,
500
- }
501
- }
502
- />
503
- </View>
504
- <View
505
- accessible={true}
506
- focusable={true}
507
- onClick={[Function]}
508
- onResponderGrant={[Function]}
509
- onResponderMove={[Function]}
510
- onResponderRelease={[Function]}
511
- onResponderTerminate={[Function]}
512
- onResponderTerminationRequest={[Function]}
513
- onStartShouldSetResponder={[Function]}
514
- style={
515
- Object {
516
- "alignItems": "center",
517
- "flexDirection": "row",
518
- "paddingVertical": 16,
519
- }
520
- }
521
- >
522
- <View
523
- style={
524
- Array [
525
- Object {
526
- "backgroundColor": "#FFD591",
527
- "borderColor": "white",
528
- "borderRadius": 20,
529
- "borderWidth": 0,
530
- "height": 40,
531
- "width": 40,
532
- },
533
- Object {
534
- "alignItems": "center",
535
- "justifyContent": "center",
536
- },
537
- undefined,
538
- ]
539
- }
540
- >
541
- <Text
542
- style={
543
- Array [
544
- Object {
545
- "color": "#FFFFFF",
546
- "fontFamily": "antoutline",
547
- "fontSize": 20,
548
- "fontStyle": "normal",
549
- "fontWeight": "normal",
550
- },
551
- undefined,
552
- ]
553
- }
554
- >
555
-
556
- </Text>
557
- </View>
558
- <View
559
- style={
560
- Object {
561
- "flex": 1,
562
- "marginLeft": 16,
563
- }
564
- }
565
- >
566
- <Text
567
- style={
568
- Array [
569
- Object {
570
- "color": "#262626",
571
- "fontFamily": "SFProDisplay-Regular",
572
- "fontSize": 16,
573
- "lineHeight": 24,
574
- "textAlign": "left",
575
- "textDecorationLine": "none",
576
- },
577
- Object {},
578
- ]
579
- }
580
- >
581
- Batoze Pre
582
- </Text>
583
- <Text
584
- style={
585
- Array [
586
- Object {
587
- "color": "#BFBFBF",
588
- "fontFamily": "SFProDisplay-Regular",
589
- "fontSize": 12,
590
- "lineHeight": 20,
591
- "textAlign": "left",
592
- "textDecorationLine": "none",
593
- },
594
- Object {
595
- "marginTop": -1,
596
- },
597
- ]
598
- }
599
- >
600
- 0921456876
601
- </Text>
602
- </View>
603
- <View
604
- style={
605
- Array [
606
- Object {
607
- "height": "100%",
608
- "position": "absolute",
609
- "right": 0,
610
- "top": 8,
611
- },
612
- ]
613
- }
614
- >
615
- <View
616
- style={
617
- Object {
618
- "alignItems": "center",
619
- "height": 40,
620
- "justifyContent": "center",
621
- "width": 40,
622
- }
623
- }
624
- >
625
- <Text
626
- style={
627
- Array [
628
- Object {
629
- "color": "#00979D",
630
- "fontFamily": "antoutline",
631
- "fontSize": 20,
632
- "fontStyle": "normal",
633
- "fontWeight": "normal",
634
- },
635
- undefined,
636
- ]
637
- }
638
- >
639
-
640
- </Text>
641
- </View>
642
- </View>
643
- <View
644
- style={
645
- Object {
646
- "backgroundColor": "#E8E8E8",
647
- "bottom": 1,
648
- "height": 1,
649
- "left": 56,
650
- "position": "absolute",
651
- "right": 0,
652
- }
653
- }
654
- />
655
- </View>
656
- </View>
657
- </View>
658
- </RCTScrollView>
659
- </RCTSafeAreaView>
660
- <View
661
- style={
662
- Object {
663
- "flexDirection": "row",
664
- "justifyContent": "center",
665
- "paddingHorizontal": 16,
666
- }
667
- }
668
- >
669
- <View
670
- accessible={true}
671
- focusable={false}
672
- onClick={[Function]}
673
- onResponderGrant={[Function]}
674
- onResponderMove={[Function]}
675
- onResponderRelease={[Function]}
676
- onResponderTerminate={[Function]}
677
- onResponderTerminationRequest={[Function]}
678
- onStartShouldSetResponder={[Function]}
679
- style={
680
- Object {
681
- "alignItems": "center",
682
- "flex": 1,
683
- "justifyContent": "center",
684
- "marginRight": 4,
685
- "opacity": 1,
686
- "paddingVertical": 24,
687
- "width": "100%",
688
- }
689
- }
690
- testID="VIEW_BUTTON_BOTTOM_LEFT_BUTTON"
691
- >
692
- <Text
693
- style={
694
- Array [
695
- Object {
696
- "color": "#00979D",
697
- "fontFamily": "SFProDisplay-Semibold",
698
- "fontSize": 16,
699
- "lineHeight": 24,
700
- "textAlign": "left",
701
- "textDecorationLine": "none",
702
- },
703
- Object {},
704
- ]
705
- }
706
- >
707
- Hủy
708
- </Text>
709
- </View>
710
- <View
711
- accessible={true}
712
- focusable={false}
713
- onClick={[Function]}
714
- onResponderGrant={[Function]}
715
- onResponderMove={[Function]}
716
- onResponderRelease={[Function]}
717
- onResponderTerminate={[Function]}
718
- onResponderTerminationRequest={[Function]}
719
- onStartShouldSetResponder={[Function]}
720
- style={
721
- Object {
722
- "alignItems": "center",
723
- "flex": 1,
724
- "justifyContent": "center",
725
- "marginLeft": 4,
726
- "opacity": 1,
727
- "paddingVertical": 24,
728
- "width": "100%",
729
- }
730
- }
731
- testID="VIEW_BUTTON_BOTTOM_RIGHT_BUTTON"
732
- >
733
- <Text
734
- style={
735
- Array [
736
- Object {
737
- "color": "#BFBFBF",
738
- "fontFamily": "SFProDisplay-Semibold",
739
- "fontSize": 16,
740
- "lineHeight": 24,
741
- "textAlign": "left",
742
- "textDecorationLine": "none",
743
- },
744
- Object {},
745
- ]
746
- }
747
- >
748
- Lưu
749
- </Text>
750
- </View>
751
- </View>
752
- </RCTSafeAreaView>
753
- `;
754
-
755
- exports[`test EmergencyContactsSelectContacts onPressContact remove from list 1`] = `
756
- <RCTSafeAreaView
757
- emulateUnlessSupported={true}
758
- style={
759
- Object {
760
- "backgroundColor": "#FAFAFA",
761
- "flex": 1,
762
- }
763
- }
764
- >
765
- <RCTSafeAreaView
766
- emulateUnlessSupported={true}
767
- style={
768
- Array [
769
- Object {
770
- "flex": 1,
771
- },
772
- undefined,
773
- ]
774
- }
775
- >
776
- <View
777
- style={
778
- Object {
779
- "backgroundColor": "transparent",
780
- "width": "100%",
781
- "zIndex": 2,
782
- }
783
- }
784
- >
785
- <View
786
- style={
787
- Object {
788
- "backgroundColor": "#FAFAFA",
789
- "borderColor": "#BFBFBF",
790
- "borderWidth": 0.5,
791
- "height": 88,
792
- "opacity": 0,
793
- "position": "absolute",
794
- "transform": Array [
795
- Object {
796
- "translateY": 0,
797
- },
798
- ],
799
- "width": "100%",
800
- }
801
- }
802
- />
803
- <View
804
- style={
805
- Object {
806
- "flexDirection": "row",
807
- "justifyContent": "space-between",
808
- }
809
- }
810
- >
811
- <View
812
- accessible={true}
813
- focusable={true}
814
- onClick={[Function]}
815
- onResponderGrant={[Function]}
816
- onResponderMove={[Function]}
817
- onResponderRelease={[Function]}
818
- onResponderTerminate={[Function]}
819
- onResponderTerminationRequest={[Function]}
820
- onStartShouldSetResponder={[Function]}
821
- style={
822
- Object {
823
- "alignItems": "center",
824
- "height": 44,
825
- "justifyContent": "center",
826
- "opacity": 1,
827
- "width": 44,
828
- }
829
- }
830
- >
831
- <Text
832
- style={
833
- Array [
834
- Object {
835
- "color": "#262626",
836
- "fontFamily": "antoutline",
837
- "fontSize": 27,
838
- "fontStyle": "normal",
839
- "fontWeight": "normal",
840
- },
841
- undefined,
842
- ]
843
- }
844
- >
845
-
846
- </Text>
847
- </View>
848
- <View
849
- styles={
850
- Object {
851
- "height": 44,
852
- "width": 44,
853
- }
854
- }
855
- />
856
- </View>
857
- <View
858
- style={
859
- Object {
860
- "backgroundColor": "transparent",
861
- "height": 44,
862
- "justifyContent": "center",
863
- "marginRight": 0,
864
- "transform": Array [
865
- Object {
866
- "translateY": 0,
867
- },
868
- Object {
869
- "translateX": 0,
870
- },
871
- Object {
872
- "scale": 1,
873
- },
874
- ],
875
- }
876
- }
877
- >
878
- <Text
879
- numberOfLines={1}
880
- style={
881
- Array [
882
- Object {
883
- "color": "#000",
884
- "fontFamily": "SFProDisplay-Semibold",
885
- "fontSize": 24,
886
- "lineHeight": 32,
887
- "textAlign": "left",
888
- "textDecorationLine": "none",
889
- },
890
- Object {
891
- "color": "#262626",
892
- "marginLeft": 16,
893
- "width": "100%",
894
- },
895
- ]
896
- }
897
- >
898
- Chọn liên hệ
899
- </Text>
900
- </View>
901
- </View>
902
- <RCTScrollView
903
- contentContainerStyle={
904
- Array [
905
- Object {
906
- "paddingBottom": 88,
907
- },
908
- undefined,
909
- ]
910
- }
911
- onMomentumScrollEnd={[Function]}
912
- onScroll={[Function]}
913
- refreshControl={
914
- <RefreshControlMock
915
- refreshing={false}
916
- />
917
- }
918
- scrollEventThrottle={16}
919
- showsVerticalScrollIndicator={false}
920
- style={
921
- Object {
922
- "flex": 1,
923
- "marginBottom": -88,
924
- "paddingTop": 16,
925
- "transform": Array [
926
- Object {
927
- "translateY": 0,
928
- },
929
- ],
930
- }
931
- }
932
- >
933
- <RCTRefreshControl />
934
- <View>
935
- <View
936
- style={
937
- Array [
938
- Object {
939
- "backgroundColor": "#FFFFFF",
940
- "borderColor": "#E8E8E8",
941
- "borderRadius": 20,
942
- "borderWidth": 1,
943
- "marginBottom": 16,
944
- "paddingBottom": 24,
945
- "paddingHorizontal": 16,
946
- "paddingTop": 8,
947
- },
948
- undefined,
949
- ]
950
- }
951
- >
952
- <View
953
- accessible={true}
954
- focusable={true}
955
- onClick={[Function]}
956
- onResponderGrant={[Function]}
957
- onResponderMove={[Function]}
958
- onResponderRelease={[Function]}
959
- onResponderTerminate={[Function]}
960
- onResponderTerminationRequest={[Function]}
961
- onStartShouldSetResponder={[Function]}
962
- style={
963
- Object {
964
- "alignItems": "center",
965
- "flexDirection": "row",
966
- "paddingVertical": 16,
967
- }
968
- }
969
- >
970
- <View
971
- style={
972
- Array [
973
- Object {
974
- "backgroundColor": "#ADC6FF",
975
- "borderColor": "white",
976
- "borderRadius": 20,
977
- "borderWidth": 0,
978
- "height": 40,
979
- "width": 40,
980
- },
981
- Object {
982
- "alignItems": "center",
983
- "justifyContent": "center",
984
- },
985
- undefined,
986
- ]
987
- }
988
- >
989
- <Text
990
- style={
991
- Array [
992
- Object {
993
- "color": "#FFFFFF",
994
- "fontFamily": "antoutline",
995
- "fontSize": 20,
996
- "fontStyle": "normal",
997
- "fontWeight": "normal",
998
- },
999
- undefined,
1000
- ]
1001
- }
1002
- >
1003
-
1004
- </Text>
1005
- </View>
1006
- <View
1007
- style={
1008
- Object {
1009
- "flex": 1,
1010
- "marginLeft": 16,
1011
- }
1012
- }
1013
- >
1014
- <Text
1015
- style={
1016
- Array [
1017
- Object {
1018
- "color": "#262626",
1019
- "fontFamily": "SFProDisplay-Regular",
1020
- "fontSize": 16,
1021
- "lineHeight": 24,
1022
- "textAlign": "left",
1023
- "textDecorationLine": "none",
1024
- },
1025
- Object {},
1026
- ]
1027
- }
1028
- >
1029
- Peter Pan
1030
- </Text>
1031
- <Text
1032
- style={
1033
- Array [
1034
- Object {
1035
- "color": "#BFBFBF",
1036
- "fontFamily": "SFProDisplay-Regular",
1037
- "fontSize": 12,
1038
- "lineHeight": 20,
1039
- "textAlign": "left",
1040
- "textDecorationLine": "none",
1041
- },
1042
- Object {
1043
- "marginTop": -1,
1044
- },
1045
- ]
1046
- }
1047
- >
1048
- 0931245690
1049
- </Text>
1050
- </View>
1051
- <View
1052
- style={
1053
- Array [
1054
- Object {
1055
- "height": "100%",
1056
- "position": "absolute",
1057
- "right": 0,
1058
- "top": 8,
1059
- },
1060
- ]
1061
- }
1062
- >
1063
- <View
1064
- style={
1065
- Object {
1066
- "alignItems": "center",
1067
- "height": 40,
1068
- "justifyContent": "center",
1069
- "width": 40,
1070
- }
1071
- }
1072
- />
1073
- </View>
1074
- <View
1075
- style={
1076
- Object {
1077
- "backgroundColor": "#E8E8E8",
1078
- "bottom": 1,
1079
- "height": 1,
1080
- "left": 56,
1081
- "position": "absolute",
1082
- "right": 0,
1083
- }
1084
- }
1085
- />
1086
- </View>
1087
- <View
1088
- accessible={true}
1089
- focusable={true}
1090
- onClick={[Function]}
1091
- onResponderGrant={[Function]}
1092
- onResponderMove={[Function]}
1093
- onResponderRelease={[Function]}
1094
- onResponderTerminate={[Function]}
1095
- onResponderTerminationRequest={[Function]}
1096
- onStartShouldSetResponder={[Function]}
1097
- style={
1098
- Object {
1099
- "alignItems": "center",
1100
- "flexDirection": "row",
1101
- "paddingVertical": 16,
1102
- }
1103
- }
1104
- >
1105
- <View
1106
- style={
1107
- Array [
1108
- Object {
1109
- "backgroundColor": "#D3ADF7",
1110
- "borderColor": "white",
1111
- "borderRadius": 20,
1112
- "borderWidth": 0,
1113
- "height": 40,
1114
- "width": 40,
1115
- },
1116
- Object {
1117
- "alignItems": "center",
1118
- "justifyContent": "center",
1119
- },
1120
- undefined,
1121
- ]
1122
- }
1123
- >
1124
- <Text
1125
- style={
1126
- Array [
1127
- Object {
1128
- "color": "#FFFFFF",
1129
- "fontFamily": "antoutline",
1130
- "fontSize": 20,
1131
- "fontStyle": "normal",
1132
- "fontWeight": "normal",
1133
- },
1134
- undefined,
1135
- ]
1136
- }
1137
- >
1138
-
1139
- </Text>
1140
- </View>
1141
- <View
1142
- style={
1143
- Object {
1144
- "flex": 1,
1145
- "marginLeft": 16,
1146
- }
1147
- }
1148
- >
1149
- <Text
1150
- style={
1151
- Array [
1152
- Object {
1153
- "color": "#262626",
1154
- "fontFamily": "SFProDisplay-Regular",
1155
- "fontSize": 16,
1156
- "lineHeight": 24,
1157
- "textAlign": "left",
1158
- "textDecorationLine": "none",
1159
- },
1160
- Object {},
1161
- ]
1162
- }
1163
- >
1164
- John Wick
1165
- </Text>
1166
- <Text
1167
- style={
1168
- Array [
1169
- Object {
1170
- "color": "#BFBFBF",
1171
- "fontFamily": "SFProDisplay-Regular",
1172
- "fontSize": 12,
1173
- "lineHeight": 20,
1174
- "textAlign": "left",
1175
- "textDecorationLine": "none",
1176
- },
1177
- Object {
1178
- "marginTop": -1,
1179
- },
1180
- ]
1181
- }
1182
- >
1183
- 0912345678
1184
- </Text>
1185
- </View>
1186
- <View
1187
- style={
1188
- Array [
1189
- Object {
1190
- "height": "100%",
1191
- "position": "absolute",
1192
- "right": 0,
1193
- "top": 8,
1194
- },
1195
- ]
1196
- }
1197
- >
1198
- <View
1199
- style={
1200
- Object {
1201
- "alignItems": "center",
1202
- "height": 40,
1203
- "justifyContent": "center",
1204
- "width": 40,
1205
- }
1206
- }
1207
- >
1208
- <Text
1209
- style={
1210
- Array [
1211
- Object {
1212
- "color": "#00979D",
1213
- "fontFamily": "antoutline",
1214
- "fontSize": 20,
1215
- "fontStyle": "normal",
1216
- "fontWeight": "normal",
1217
- },
1218
- undefined,
1219
- ]
1220
- }
1221
- >
1222
-
1223
- </Text>
1224
- </View>
1225
- </View>
1226
- <View
1227
- style={
1228
- Object {
1229
- "backgroundColor": "#E8E8E8",
1230
- "bottom": 1,
1231
- "height": 1,
1232
- "left": 56,
1233
- "position": "absolute",
1234
- "right": 0,
1235
- }
1236
- }
1237
- />
1238
- </View>
1239
- <View
1240
- accessible={true}
1241
- focusable={true}
1242
- onClick={[Function]}
1243
- onResponderGrant={[Function]}
1244
- onResponderMove={[Function]}
1245
- onResponderRelease={[Function]}
1246
- onResponderTerminate={[Function]}
1247
- onResponderTerminationRequest={[Function]}
1248
- onStartShouldSetResponder={[Function]}
1249
- style={
1250
- Object {
1251
- "alignItems": "center",
1252
- "flexDirection": "row",
1253
- "paddingVertical": 16,
1254
- }
1255
- }
1256
- >
1257
- <View
1258
- style={
1259
- Array [
1260
- Object {
1261
- "backgroundColor": "#FFD591",
1262
- "borderColor": "white",
1263
- "borderRadius": 20,
1264
- "borderWidth": 0,
1265
- "height": 40,
1266
- "width": 40,
1267
- },
1268
- Object {
1269
- "alignItems": "center",
1270
- "justifyContent": "center",
1271
- },
1272
- undefined,
1273
- ]
1274
- }
1275
- >
1276
- <Text
1277
- style={
1278
- Array [
1279
- Object {
1280
- "color": "#FFFFFF",
1281
- "fontFamily": "antoutline",
1282
- "fontSize": 20,
1283
- "fontStyle": "normal",
1284
- "fontWeight": "normal",
1285
- },
1286
- undefined,
1287
- ]
1288
- }
1289
- >
1290
-
1291
- </Text>
1292
- </View>
1293
- <View
1294
- style={
1295
- Object {
1296
- "flex": 1,
1297
- "marginLeft": 16,
1298
- }
1299
- }
1300
- >
1301
- <Text
1302
- style={
1303
- Array [
1304
- Object {
1305
- "color": "#262626",
1306
- "fontFamily": "SFProDisplay-Regular",
1307
- "fontSize": 16,
1308
- "lineHeight": 24,
1309
- "textAlign": "left",
1310
- "textDecorationLine": "none",
1311
- },
1312
- Object {},
1313
- ]
1314
- }
1315
- >
1316
- Batoze Pre
1317
- </Text>
1318
- <Text
1319
- style={
1320
- Array [
1321
- Object {
1322
- "color": "#BFBFBF",
1323
- "fontFamily": "SFProDisplay-Regular",
1324
- "fontSize": 12,
1325
- "lineHeight": 20,
1326
- "textAlign": "left",
1327
- "textDecorationLine": "none",
1328
- },
1329
- Object {
1330
- "marginTop": -1,
1331
- },
1332
- ]
1333
- }
1334
- >
1335
- 0921456876
1336
- </Text>
1337
- </View>
1338
- <View
1339
- style={
1340
- Array [
1341
- Object {
1342
- "height": "100%",
1343
- "position": "absolute",
1344
- "right": 0,
1345
- "top": 8,
1346
- },
1347
- ]
1348
- }
1349
- >
1350
- <View
1351
- style={
1352
- Object {
1353
- "alignItems": "center",
1354
- "height": 40,
1355
- "justifyContent": "center",
1356
- "width": 40,
1357
- }
1358
- }
1359
- >
1360
- <Text
1361
- style={
1362
- Array [
1363
- Object {
1364
- "color": "#00979D",
1365
- "fontFamily": "antoutline",
1366
- "fontSize": 20,
1367
- "fontStyle": "normal",
1368
- "fontWeight": "normal",
1369
- },
1370
- undefined,
1371
- ]
1372
- }
1373
- >
1374
-
1375
- </Text>
1376
- </View>
1377
- </View>
1378
- <View
1379
- style={
1380
- Object {
1381
- "backgroundColor": "#E8E8E8",
1382
- "bottom": 1,
1383
- "height": 1,
1384
- "left": 56,
1385
- "position": "absolute",
1386
- "right": 0,
1387
- }
1388
- }
1389
- />
1390
- </View>
1391
- </View>
1392
- </View>
1393
- </RCTScrollView>
1394
- </RCTSafeAreaView>
1395
- <View
1396
- style={
1397
- Object {
1398
- "flexDirection": "row",
1399
- "justifyContent": "center",
1400
- "paddingHorizontal": 16,
1401
- }
1402
- }
1403
- >
1404
- <View
1405
- accessible={true}
1406
- focusable={false}
1407
- onClick={[Function]}
1408
- onResponderGrant={[Function]}
1409
- onResponderMove={[Function]}
1410
- onResponderRelease={[Function]}
1411
- onResponderTerminate={[Function]}
1412
- onResponderTerminationRequest={[Function]}
1413
- onStartShouldSetResponder={[Function]}
1414
- style={
1415
- Object {
1416
- "alignItems": "center",
1417
- "flex": 1,
1418
- "justifyContent": "center",
1419
- "marginRight": 4,
1420
- "opacity": 1,
1421
- "paddingVertical": 24,
1422
- "width": "100%",
1423
- }
1424
- }
1425
- testID="VIEW_BUTTON_BOTTOM_LEFT_BUTTON"
1426
- >
1427
- <Text
1428
- style={
1429
- Array [
1430
- Object {
1431
- "color": "#00979D",
1432
- "fontFamily": "SFProDisplay-Semibold",
1433
- "fontSize": 16,
1434
- "lineHeight": 24,
1435
- "textAlign": "left",
1436
- "textDecorationLine": "none",
1437
- },
1438
- Object {},
1439
- ]
1440
- }
1441
- >
1442
- Hủy
1443
- </Text>
1444
- </View>
1445
- <View
1446
- accessible={true}
1447
- focusable={false}
1448
- onClick={[Function]}
1449
- onResponderGrant={[Function]}
1450
- onResponderMove={[Function]}
1451
- onResponderRelease={[Function]}
1452
- onResponderTerminate={[Function]}
1453
- onResponderTerminationRequest={[Function]}
1454
- onStartShouldSetResponder={[Function]}
1455
- style={
1456
- Object {
1457
- "alignItems": "center",
1458
- "flex": 1,
1459
- "justifyContent": "center",
1460
- "marginLeft": 4,
1461
- "opacity": 1,
1462
- "paddingVertical": 24,
1463
- "width": "100%",
1464
- }
1465
- }
1466
- testID="VIEW_BUTTON_BOTTOM_RIGHT_BUTTON"
1467
- >
1468
- <Text
1469
- style={
1470
- Array [
1471
- Object {
1472
- "color": "#BFBFBF",
1473
- "fontFamily": "SFProDisplay-Semibold",
1474
- "fontSize": 16,
1475
- "lineHeight": 24,
1476
- "textAlign": "left",
1477
- "textDecorationLine": "none",
1478
- },
1479
- Object {},
1480
- ]
1481
- }
1482
- >
1483
- Lưu
1484
- </Text>
1485
- </View>
1486
- </View>
1487
- </RCTSafeAreaView>
1488
- `;
1489
-
1490
- exports[`test EmergencyContactsSelectContacts render 1`] = `
1491
- <RCTSafeAreaView
1492
- emulateUnlessSupported={true}
1493
- style={
1494
- Object {
1495
- "backgroundColor": "#FAFAFA",
1496
- "flex": 1,
1497
- }
1498
- }
1499
- >
1500
- <RCTSafeAreaView
1501
- emulateUnlessSupported={true}
1502
- style={
1503
- Array [
1504
- Object {
1505
- "flex": 1,
1506
- },
1507
- undefined,
1508
- ]
1509
- }
1510
- >
1511
- <View
1512
- style={
1513
- Object {
1514
- "backgroundColor": "transparent",
1515
- "width": "100%",
1516
- "zIndex": 2,
1517
- }
1518
- }
1519
- >
1520
- <View
1521
- style={
1522
- Object {
1523
- "backgroundColor": "#FAFAFA",
1524
- "borderColor": "#BFBFBF",
1525
- "borderWidth": 0.5,
1526
- "height": 88,
1527
- "opacity": 0,
1528
- "position": "absolute",
1529
- "transform": Array [
1530
- Object {
1531
- "translateY": 0,
1532
- },
1533
- ],
1534
- "width": "100%",
1535
- }
1536
- }
1537
- />
1538
- <View
1539
- style={
1540
- Object {
1541
- "flexDirection": "row",
1542
- "justifyContent": "space-between",
1543
- }
1544
- }
1545
- >
1546
- <View
1547
- accessible={true}
1548
- focusable={true}
1549
- onClick={[Function]}
1550
- onResponderGrant={[Function]}
1551
- onResponderMove={[Function]}
1552
- onResponderRelease={[Function]}
1553
- onResponderTerminate={[Function]}
1554
- onResponderTerminationRequest={[Function]}
1555
- onStartShouldSetResponder={[Function]}
1556
- style={
1557
- Object {
1558
- "alignItems": "center",
1559
- "height": 44,
1560
- "justifyContent": "center",
1561
- "opacity": 1,
1562
- "width": 44,
1563
- }
1564
- }
1565
- >
1566
- <Text
1567
- style={
1568
- Array [
1569
- Object {
1570
- "color": "#262626",
1571
- "fontFamily": "antoutline",
1572
- "fontSize": 27,
1573
- "fontStyle": "normal",
1574
- "fontWeight": "normal",
1575
- },
1576
- undefined,
1577
- ]
1578
- }
1579
- >
1580
-
1581
- </Text>
1582
- </View>
1583
- <View
1584
- styles={
1585
- Object {
1586
- "height": 44,
1587
- "width": 44,
1588
- }
1589
- }
1590
- />
1591
- </View>
1592
- <View
1593
- style={
1594
- Object {
1595
- "backgroundColor": "transparent",
1596
- "height": 44,
1597
- "justifyContent": "center",
1598
- "marginRight": 0,
1599
- "transform": Array [
1600
- Object {
1601
- "translateY": 0,
1602
- },
1603
- Object {
1604
- "translateX": 0,
1605
- },
1606
- Object {
1607
- "scale": 1,
1608
- },
1609
- ],
1610
- }
1611
- }
1612
- >
1613
- <Text
1614
- numberOfLines={1}
1615
- style={
1616
- Array [
1617
- Object {
1618
- "color": "#000",
1619
- "fontFamily": "SFProDisplay-Semibold",
1620
- "fontSize": 24,
1621
- "lineHeight": 32,
1622
- "textAlign": "left",
1623
- "textDecorationLine": "none",
1624
- },
1625
- Object {
1626
- "color": "#262626",
1627
- "marginLeft": 16,
1628
- "width": "100%",
1629
- },
1630
- ]
1631
- }
1632
- >
1633
- Chọn liên hệ
1634
- </Text>
1635
- </View>
1636
- </View>
1637
- <RCTScrollView
1638
- contentContainerStyle={
1639
- Array [
1640
- Object {
1641
- "paddingBottom": 88,
1642
- },
1643
- undefined,
1644
- ]
1645
- }
1646
- onMomentumScrollEnd={[Function]}
1647
- onScroll={[Function]}
1648
- refreshControl={
1649
- <RefreshControlMock
1650
- refreshing={false}
1651
- />
1652
- }
1653
- scrollEventThrottle={16}
1654
- showsVerticalScrollIndicator={false}
1655
- style={
1656
- Object {
1657
- "flex": 1,
1658
- "marginBottom": -88,
1659
- "paddingTop": 16,
1660
- "transform": Array [
1661
- Object {
1662
- "translateY": 0,
1663
- },
1664
- ],
1665
- }
1666
- }
1667
- >
1668
- <RCTRefreshControl />
1669
- <View>
1670
- <View
1671
- style={
1672
- Array [
1673
- Object {
1674
- "backgroundColor": "#FFFFFF",
1675
- "borderColor": "#E8E8E8",
1676
- "borderRadius": 20,
1677
- "borderWidth": 1,
1678
- "marginBottom": 16,
1679
- "paddingBottom": 24,
1680
- "paddingHorizontal": 16,
1681
- "paddingTop": 8,
1682
- },
1683
- undefined,
1684
- ]
1685
- }
1686
- >
1687
- <View
1688
- accessible={true}
1689
- focusable={true}
1690
- onClick={[Function]}
1691
- onResponderGrant={[Function]}
1692
- onResponderMove={[Function]}
1693
- onResponderRelease={[Function]}
1694
- onResponderTerminate={[Function]}
1695
- onResponderTerminationRequest={[Function]}
1696
- onStartShouldSetResponder={[Function]}
1697
- style={
1698
- Object {
1699
- "alignItems": "center",
1700
- "flexDirection": "row",
1701
- "paddingVertical": 16,
1702
- }
1703
- }
1704
- >
1705
- <View
1706
- style={
1707
- Array [
1708
- Object {
1709
- "backgroundColor": "#ADC6FF",
1710
- "borderColor": "white",
1711
- "borderRadius": 20,
1712
- "borderWidth": 0,
1713
- "height": 40,
1714
- "width": 40,
1715
- },
1716
- Object {
1717
- "alignItems": "center",
1718
- "justifyContent": "center",
1719
- },
1720
- undefined,
1721
- ]
1722
- }
1723
- >
1724
- <Text
1725
- style={
1726
- Array [
1727
- Object {
1728
- "color": "#FFFFFF",
1729
- "fontFamily": "antoutline",
1730
- "fontSize": 20,
1731
- "fontStyle": "normal",
1732
- "fontWeight": "normal",
1733
- },
1734
- undefined,
1735
- ]
1736
- }
1737
- >
1738
-
1739
- </Text>
1740
- </View>
1741
- <View
1742
- style={
1743
- Object {
1744
- "flex": 1,
1745
- "marginLeft": 16,
1746
- }
1747
- }
1748
- >
1749
- <Text
1750
- style={
1751
- Array [
1752
- Object {
1753
- "color": "#262626",
1754
- "fontFamily": "SFProDisplay-Regular",
1755
- "fontSize": 16,
1756
- "lineHeight": 24,
1757
- "textAlign": "left",
1758
- "textDecorationLine": "none",
1759
- },
1760
- Object {},
1761
- ]
1762
- }
1763
- >
1764
- Peter Pan
1765
- </Text>
1766
- <Text
1767
- style={
1768
- Array [
1769
- Object {
1770
- "color": "#BFBFBF",
1771
- "fontFamily": "SFProDisplay-Regular",
1772
- "fontSize": 12,
1773
- "lineHeight": 20,
1774
- "textAlign": "left",
1775
- "textDecorationLine": "none",
1776
- },
1777
- Object {
1778
- "marginTop": -1,
1779
- },
1780
- ]
1781
- }
1782
- >
1783
- 0931245690
1784
- </Text>
1785
- </View>
1786
- <View
1787
- style={
1788
- Array [
1789
- Object {
1790
- "height": "100%",
1791
- "position": "absolute",
1792
- "right": 0,
1793
- "top": 8,
1794
- },
1795
- ]
1796
- }
1797
- >
1798
- <View
1799
- style={
1800
- Object {
1801
- "alignItems": "center",
1802
- "height": 40,
1803
- "justifyContent": "center",
1804
- "width": 40,
1805
- }
1806
- }
1807
- >
1808
- <Text
1809
- style={
1810
- Array [
1811
- Object {
1812
- "color": "#00979D",
1813
- "fontFamily": "antoutline",
1814
- "fontSize": 20,
1815
- "fontStyle": "normal",
1816
- "fontWeight": "normal",
1817
- },
1818
- undefined,
1819
- ]
1820
- }
1821
- >
1822
-
1823
- </Text>
1824
- </View>
1825
- </View>
1826
- <View
1827
- style={
1828
- Object {
1829
- "backgroundColor": "#E8E8E8",
1830
- "bottom": 1,
1831
- "height": 1,
1832
- "left": 56,
1833
- "position": "absolute",
1834
- "right": 0,
1835
- }
1836
- }
1837
- />
1838
- </View>
1839
- <View
1840
- accessible={true}
1841
- focusable={true}
1842
- onClick={[Function]}
1843
- onResponderGrant={[Function]}
1844
- onResponderMove={[Function]}
1845
- onResponderRelease={[Function]}
1846
- onResponderTerminate={[Function]}
1847
- onResponderTerminationRequest={[Function]}
1848
- onStartShouldSetResponder={[Function]}
1849
- style={
1850
- Object {
1851
- "alignItems": "center",
1852
- "flexDirection": "row",
1853
- "paddingVertical": 16,
1854
- }
1855
- }
1856
- >
1857
- <View
1858
- style={
1859
- Array [
1860
- Object {
1861
- "backgroundColor": "#D3ADF7",
1862
- "borderColor": "white",
1863
- "borderRadius": 20,
1864
- "borderWidth": 0,
1865
- "height": 40,
1866
- "width": 40,
1867
- },
1868
- Object {
1869
- "alignItems": "center",
1870
- "justifyContent": "center",
1871
- },
1872
- undefined,
1873
- ]
1874
- }
1875
- >
1876
- <Text
1877
- style={
1878
- Array [
1879
- Object {
1880
- "color": "#FFFFFF",
1881
- "fontFamily": "antoutline",
1882
- "fontSize": 20,
1883
- "fontStyle": "normal",
1884
- "fontWeight": "normal",
1885
- },
1886
- undefined,
1887
- ]
1888
- }
1889
- >
1890
-
1891
- </Text>
1892
- </View>
1893
- <View
1894
- style={
1895
- Object {
1896
- "flex": 1,
1897
- "marginLeft": 16,
1898
- }
1899
- }
1900
- >
1901
- <Text
1902
- style={
1903
- Array [
1904
- Object {
1905
- "color": "#262626",
1906
- "fontFamily": "SFProDisplay-Regular",
1907
- "fontSize": 16,
1908
- "lineHeight": 24,
1909
- "textAlign": "left",
1910
- "textDecorationLine": "none",
1911
- },
1912
- Object {},
1913
- ]
1914
- }
1915
- >
1916
- John Wick
1917
- </Text>
1918
- <Text
1919
- style={
1920
- Array [
1921
- Object {
1922
- "color": "#BFBFBF",
1923
- "fontFamily": "SFProDisplay-Regular",
1924
- "fontSize": 12,
1925
- "lineHeight": 20,
1926
- "textAlign": "left",
1927
- "textDecorationLine": "none",
1928
- },
1929
- Object {
1930
- "marginTop": -1,
1931
- },
1932
- ]
1933
- }
1934
- >
1935
- 0912345678
1936
- </Text>
1937
- </View>
1938
- <View
1939
- style={
1940
- Array [
1941
- Object {
1942
- "height": "100%",
1943
- "position": "absolute",
1944
- "right": 0,
1945
- "top": 8,
1946
- },
1947
- ]
1948
- }
1949
- >
1950
- <View
1951
- style={
1952
- Object {
1953
- "alignItems": "center",
1954
- "height": 40,
1955
- "justifyContent": "center",
1956
- "width": 40,
1957
- }
1958
- }
1959
- >
1960
- <Text
1961
- style={
1962
- Array [
1963
- Object {
1964
- "color": "#00979D",
1965
- "fontFamily": "antoutline",
1966
- "fontSize": 20,
1967
- "fontStyle": "normal",
1968
- "fontWeight": "normal",
1969
- },
1970
- undefined,
1971
- ]
1972
- }
1973
- >
1974
-
1975
- </Text>
1976
- </View>
1977
- </View>
1978
- <View
1979
- style={
1980
- Object {
1981
- "backgroundColor": "#E8E8E8",
1982
- "bottom": 1,
1983
- "height": 1,
1984
- "left": 56,
1985
- "position": "absolute",
1986
- "right": 0,
1987
- }
1988
- }
1989
- />
1990
- </View>
1991
- <View
1992
- accessible={true}
1993
- focusable={true}
1994
- onClick={[Function]}
1995
- onResponderGrant={[Function]}
1996
- onResponderMove={[Function]}
1997
- onResponderRelease={[Function]}
1998
- onResponderTerminate={[Function]}
1999
- onResponderTerminationRequest={[Function]}
2000
- onStartShouldSetResponder={[Function]}
2001
- style={
2002
- Object {
2003
- "alignItems": "center",
2004
- "flexDirection": "row",
2005
- "paddingVertical": 16,
2006
- }
2007
- }
2008
- >
2009
- <View
2010
- style={
2011
- Array [
2012
- Object {
2013
- "backgroundColor": "#FFD591",
2014
- "borderColor": "white",
2015
- "borderRadius": 20,
2016
- "borderWidth": 0,
2017
- "height": 40,
2018
- "width": 40,
2019
- },
2020
- Object {
2021
- "alignItems": "center",
2022
- "justifyContent": "center",
2023
- },
2024
- undefined,
2025
- ]
2026
- }
2027
- >
2028
- <Text
2029
- style={
2030
- Array [
2031
- Object {
2032
- "color": "#FFFFFF",
2033
- "fontFamily": "antoutline",
2034
- "fontSize": 20,
2035
- "fontStyle": "normal",
2036
- "fontWeight": "normal",
2037
- },
2038
- undefined,
2039
- ]
2040
- }
2041
- >
2042
-
2043
- </Text>
2044
- </View>
2045
- <View
2046
- style={
2047
- Object {
2048
- "flex": 1,
2049
- "marginLeft": 16,
2050
- }
2051
- }
2052
- >
2053
- <Text
2054
- style={
2055
- Array [
2056
- Object {
2057
- "color": "#262626",
2058
- "fontFamily": "SFProDisplay-Regular",
2059
- "fontSize": 16,
2060
- "lineHeight": 24,
2061
- "textAlign": "left",
2062
- "textDecorationLine": "none",
2063
- },
2064
- Object {},
2065
- ]
2066
- }
2067
- >
2068
- Batoze Pre
2069
- </Text>
2070
- <Text
2071
- style={
2072
- Array [
2073
- Object {
2074
- "color": "#BFBFBF",
2075
- "fontFamily": "SFProDisplay-Regular",
2076
- "fontSize": 12,
2077
- "lineHeight": 20,
2078
- "textAlign": "left",
2079
- "textDecorationLine": "none",
2080
- },
2081
- Object {
2082
- "marginTop": -1,
2083
- },
2084
- ]
2085
- }
2086
- >
2087
- 0921456876
2088
- </Text>
2089
- </View>
2090
- <View
2091
- style={
2092
- Array [
2093
- Object {
2094
- "height": "100%",
2095
- "position": "absolute",
2096
- "right": 0,
2097
- "top": 8,
2098
- },
2099
- ]
2100
- }
2101
- >
2102
- <View
2103
- style={
2104
- Object {
2105
- "alignItems": "center",
2106
- "height": 40,
2107
- "justifyContent": "center",
2108
- "width": 40,
2109
- }
2110
- }
2111
- >
2112
- <Text
2113
- style={
2114
- Array [
2115
- Object {
2116
- "color": "#00979D",
2117
- "fontFamily": "antoutline",
2118
- "fontSize": 20,
2119
- "fontStyle": "normal",
2120
- "fontWeight": "normal",
2121
- },
2122
- undefined,
2123
- ]
2124
- }
2125
- >
2126
-
2127
- </Text>
2128
- </View>
2129
- </View>
2130
- <View
2131
- style={
2132
- Object {
2133
- "backgroundColor": "#E8E8E8",
2134
- "bottom": 1,
2135
- "height": 1,
2136
- "left": 56,
2137
- "position": "absolute",
2138
- "right": 0,
2139
- }
2140
- }
2141
- />
2142
- </View>
2143
- </View>
2144
- </View>
2145
- </RCTScrollView>
2146
- </RCTSafeAreaView>
2147
- <View
2148
- style={
2149
- Object {
2150
- "flexDirection": "row",
2151
- "justifyContent": "center",
2152
- "paddingHorizontal": 16,
2153
- }
2154
- }
2155
- >
2156
- <View
2157
- accessible={true}
2158
- focusable={false}
2159
- onClick={[Function]}
2160
- onResponderGrant={[Function]}
2161
- onResponderMove={[Function]}
2162
- onResponderRelease={[Function]}
2163
- onResponderTerminate={[Function]}
2164
- onResponderTerminationRequest={[Function]}
2165
- onStartShouldSetResponder={[Function]}
2166
- style={
2167
- Object {
2168
- "alignItems": "center",
2169
- "flex": 1,
2170
- "justifyContent": "center",
2171
- "marginRight": 4,
2172
- "opacity": 1,
2173
- "paddingVertical": 24,
2174
- "width": "100%",
2175
- }
2176
- }
2177
- testID="VIEW_BUTTON_BOTTOM_LEFT_BUTTON"
2178
- >
2179
- <Text
2180
- style={
2181
- Array [
2182
- Object {
2183
- "color": "#00979D",
2184
- "fontFamily": "SFProDisplay-Semibold",
2185
- "fontSize": 16,
2186
- "lineHeight": 24,
2187
- "textAlign": "left",
2188
- "textDecorationLine": "none",
2189
- },
2190
- Object {},
2191
- ]
2192
- }
2193
- >
2194
- Hủy
2195
- </Text>
2196
- </View>
2197
- <View
2198
- accessible={true}
2199
- focusable={false}
2200
- onClick={[Function]}
2201
- onResponderGrant={[Function]}
2202
- onResponderMove={[Function]}
2203
- onResponderRelease={[Function]}
2204
- onResponderTerminate={[Function]}
2205
- onResponderTerminationRequest={[Function]}
2206
- onStartShouldSetResponder={[Function]}
2207
- style={
2208
- Object {
2209
- "alignItems": "center",
2210
- "flex": 1,
2211
- "justifyContent": "center",
2212
- "marginLeft": 4,
2213
- "opacity": 1,
2214
- "paddingVertical": 24,
2215
- "width": "100%",
2216
- }
2217
- }
2218
- testID="VIEW_BUTTON_BOTTOM_RIGHT_BUTTON"
2219
- >
2220
- <Text
2221
- style={
2222
- Array [
2223
- Object {
2224
- "color": "#BFBFBF",
2225
- "fontFamily": "SFProDisplay-Semibold",
2226
- "fontSize": 16,
2227
- "lineHeight": 24,
2228
- "textAlign": "left",
2229
- "textDecorationLine": "none",
2230
- },
2231
- Object {},
2232
- ]
2233
- }
2234
- >
2235
- Lưu
2236
- </Text>
2237
- </View>
2238
- </View>
2239
- </RCTSafeAreaView>
2240
- `;