@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,1574 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Test WaterQualityGuide render WaterQuality without showBoxHistory 1`] = `
4
- <View
5
- style={
6
- Array [
7
- Object {
8
- "backgroundColor": "#FFFFFF",
9
- "borderColor": "#E8E8E8",
10
- "borderRadius": 20,
11
- "borderWidth": 1,
12
- "marginBottom": 16,
13
- "paddingBottom": 24,
14
- "paddingHorizontal": 16,
15
- "paddingTop": 8,
16
- },
17
- undefined,
18
- ]
19
- }
20
- >
21
- <View
22
- style={
23
- Object {
24
- "marginTop": 16,
25
- }
26
- }
27
- >
28
- <Text
29
- style={
30
- Array [
31
- Object {
32
- "color": "#000",
33
- "fontFamily": "SFProDisplay-Semibold",
34
- "fontSize": undefined,
35
- "lineHeight": undefined,
36
- "textAlign": "left",
37
- "textDecorationLine": "none",
38
- },
39
- Object {
40
- "color": "#262626",
41
- "fontSize": 20,
42
- },
43
- ]
44
- }
45
- >
46
- Hôm nay, 24 tháng 1
47
- </Text>
48
- </View>
49
- <Text
50
- style={
51
- Array [
52
- Object {
53
- "color": "#000",
54
- "fontFamily": "SFProDisplay-Regular",
55
- "fontSize": undefined,
56
- "lineHeight": undefined,
57
- "textAlign": "left",
58
- "textDecorationLine": "none",
59
- },
60
- Object {
61
- "fontSize": 12,
62
- "lineHeight": 20,
63
- "marginBottom": 20,
64
- },
65
- ]
66
- }
67
- >
68
- Chất lượng nước tổng thể được dựa trên những thông số dưới đây
69
- </Text>
70
- <View
71
- style={
72
- Object {
73
- "flexDirection": "row",
74
- "flexWrap": "wrap",
75
- "justifyContent": "space-between",
76
- }
77
- }
78
- >
79
- <View
80
- style={
81
- Object {
82
- "backgroundColor": "#FFFFFF",
83
- "borderRadius": 5,
84
- "elevation": 5,
85
- "marginBottom": 16,
86
- "padding": 16,
87
- "shadowColor": "#303133",
88
- "shadowOffset": Object {
89
- "height": 2,
90
- "width": 0,
91
- },
92
- "shadowOpacity": 0.1,
93
- "width": 351,
94
- }
95
- }
96
- >
97
- <View
98
- color="#595959"
99
- size={14}
100
- style={
101
- Object {
102
- "flexDirection": "row",
103
- "justifyContent": "space-between",
104
- "marginBottom": 16,
105
- "width": "100%",
106
- }
107
- }
108
- >
109
- <Text
110
- style={
111
- Array [
112
- Object {
113
- "color": "#000",
114
- "fontFamily": "SFProDisplay-Regular",
115
- "fontSize": undefined,
116
- "lineHeight": undefined,
117
- "textAlign": "left",
118
- "textDecorationLine": "none",
119
- },
120
- Object {},
121
- ]
122
- }
123
- >
124
- Độ đục
125
- </Text>
126
- <RNGestureHandlerButton
127
- collapsable={false}
128
- onGestureEvent={[Function]}
129
- onGestureHandlerEvent={[Function]}
130
- onGestureHandlerStateChange={[Function]}
131
- onHandlerStateChange={[Function]}
132
- rippleColor={0}
133
- >
134
- <View
135
- accessible={true}
136
- style={
137
- Object {
138
- "opacity": 1,
139
- }
140
- }
141
- >
142
- <Text
143
- style={
144
- Array [
145
- Object {
146
- "color": "#000000",
147
- "fontFamily": "antoutline",
148
- "fontSize": 14,
149
- "fontStyle": "normal",
150
- "fontWeight": "normal",
151
- },
152
- Object {
153
- "flexDirection": "row",
154
- },
155
- ]
156
- }
157
- >
158
-
159
- </Text>
160
- </View>
161
- </RNGestureHandlerButton>
162
- </View>
163
- <Text
164
- style={
165
- Array [
166
- Object {
167
- "color": "#262626",
168
- "fontFamily": "SFProDisplay-Regular",
169
- "fontSize": 24,
170
- "lineHeight": 24,
171
- "textAlign": "left",
172
- "textDecorationLine": "none",
173
- },
174
- Object {
175
- "marginBottom": 8,
176
- },
177
- ]
178
- }
179
- >
180
- 1
181
- </Text>
182
- <Text
183
- style={
184
- Array [
185
- Object {
186
- "color": "#595959",
187
- "fontFamily": "SFProDisplay-Regular",
188
- "fontSize": 12,
189
- "lineHeight": 12,
190
- "textAlign": "left",
191
- "textDecorationLine": "none",
192
- },
193
- Object {},
194
- ]
195
- }
196
- >
197
-
198
- </Text>
199
- <View
200
- style={
201
- Object {
202
- "position": "absolute",
203
- "right": 8,
204
- "top": 8,
205
- }
206
- }
207
- >
208
- <Text
209
- style={
210
- Array [
211
- Object {
212
- "color": "#000",
213
- "fontFamily": "SFProDisplay-Regular",
214
- "fontSize": undefined,
215
- "lineHeight": undefined,
216
- "textAlign": "left",
217
- "textDecorationLine": "none",
218
- },
219
- Object {},
220
- ]
221
- }
222
- >
223
-
224
- </Text>
225
- </View>
226
- </View>
227
- <View
228
- style={
229
- Object {
230
- "backgroundColor": "#FFFFFF",
231
- "borderRadius": 5,
232
- "elevation": 5,
233
- "marginBottom": 16,
234
- "padding": 16,
235
- "shadowColor": "#303133",
236
- "shadowOffset": Object {
237
- "height": 2,
238
- "width": 0,
239
- },
240
- "shadowOpacity": 0.1,
241
- "width": 351,
242
- }
243
- }
244
- >
245
- <View
246
- color="#595959"
247
- size={14}
248
- style={
249
- Object {
250
- "flexDirection": "row",
251
- "justifyContent": "space-between",
252
- "marginBottom": 16,
253
- "width": "100%",
254
- }
255
- }
256
- >
257
- <Text
258
- style={
259
- Array [
260
- Object {
261
- "color": "#000",
262
- "fontFamily": "SFProDisplay-Regular",
263
- "fontSize": undefined,
264
- "lineHeight": undefined,
265
- "textAlign": "left",
266
- "textDecorationLine": "none",
267
- },
268
- Object {},
269
- ]
270
- }
271
- >
272
- pH
273
- </Text>
274
- <RNGestureHandlerButton
275
- collapsable={false}
276
- onGestureEvent={[Function]}
277
- onGestureHandlerEvent={[Function]}
278
- onGestureHandlerStateChange={[Function]}
279
- onHandlerStateChange={[Function]}
280
- rippleColor={0}
281
- >
282
- <View
283
- accessible={true}
284
- style={
285
- Object {
286
- "opacity": 1,
287
- }
288
- }
289
- >
290
- <Text
291
- style={
292
- Array [
293
- Object {
294
- "color": "#000000",
295
- "fontFamily": "antoutline",
296
- "fontSize": 14,
297
- "fontStyle": "normal",
298
- "fontWeight": "normal",
299
- },
300
- Object {
301
- "flexDirection": "row",
302
- },
303
- ]
304
- }
305
- >
306
-
307
- </Text>
308
- </View>
309
- </RNGestureHandlerButton>
310
- </View>
311
- <Text
312
- style={
313
- Array [
314
- Object {
315
- "color": "#262626",
316
- "fontFamily": "SFProDisplay-Regular",
317
- "fontSize": 24,
318
- "lineHeight": 24,
319
- "textAlign": "left",
320
- "textDecorationLine": "none",
321
- },
322
- Object {
323
- "marginBottom": 8,
324
- },
325
- ]
326
- }
327
- />
328
- <Text
329
- style={
330
- Array [
331
- Object {
332
- "color": "#595959",
333
- "fontFamily": "SFProDisplay-Regular",
334
- "fontSize": 12,
335
- "lineHeight": 12,
336
- "textAlign": "left",
337
- "textDecorationLine": "none",
338
- },
339
- Object {},
340
- ]
341
- }
342
- />
343
- <View
344
- style={
345
- Object {
346
- "position": "absolute",
347
- "right": 8,
348
- "top": 8,
349
- }
350
- }
351
- >
352
- <Text
353
- style={
354
- Array [
355
- Object {
356
- "color": "#000",
357
- "fontFamily": "SFProDisplay-Regular",
358
- "fontSize": undefined,
359
- "lineHeight": undefined,
360
- "textAlign": "left",
361
- "textDecorationLine": "none",
362
- },
363
- Object {},
364
- ]
365
- }
366
- >
367
-
368
- </Text>
369
- </View>
370
- </View>
371
- <View
372
- style={
373
- Object {
374
- "backgroundColor": "#FFFFFF",
375
- "borderRadius": 5,
376
- "elevation": 5,
377
- "marginBottom": 16,
378
- "padding": 16,
379
- "shadowColor": "#303133",
380
- "shadowOffset": Object {
381
- "height": 2,
382
- "width": 0,
383
- },
384
- "shadowOpacity": 0.1,
385
- "width": 351,
386
- }
387
- }
388
- >
389
- <View
390
- color="#595959"
391
- size={14}
392
- style={
393
- Object {
394
- "flexDirection": "row",
395
- "justifyContent": "space-between",
396
- "marginBottom": 16,
397
- "width": "100%",
398
- }
399
- }
400
- >
401
- <Text
402
- style={
403
- Array [
404
- Object {
405
- "color": "#000",
406
- "fontFamily": "SFProDisplay-Regular",
407
- "fontSize": undefined,
408
- "lineHeight": undefined,
409
- "textAlign": "left",
410
- "textDecorationLine": "none",
411
- },
412
- Object {},
413
- ]
414
- }
415
- >
416
- Clo dư
417
- </Text>
418
- <RNGestureHandlerButton
419
- collapsable={false}
420
- onGestureEvent={[Function]}
421
- onGestureHandlerEvent={[Function]}
422
- onGestureHandlerStateChange={[Function]}
423
- onHandlerStateChange={[Function]}
424
- rippleColor={0}
425
- >
426
- <View
427
- accessible={true}
428
- style={
429
- Object {
430
- "opacity": 1,
431
- }
432
- }
433
- >
434
- <Text
435
- style={
436
- Array [
437
- Object {
438
- "color": "#000000",
439
- "fontFamily": "antoutline",
440
- "fontSize": 14,
441
- "fontStyle": "normal",
442
- "fontWeight": "normal",
443
- },
444
- Object {
445
- "flexDirection": "row",
446
- },
447
- ]
448
- }
449
- >
450
-
451
- </Text>
452
- </View>
453
- </RNGestureHandlerButton>
454
- </View>
455
- <Text
456
- style={
457
- Array [
458
- Object {
459
- "color": "#262626",
460
- "fontFamily": "SFProDisplay-Regular",
461
- "fontSize": 24,
462
- "lineHeight": 24,
463
- "textAlign": "left",
464
- "textDecorationLine": "none",
465
- },
466
- Object {
467
- "marginBottom": 8,
468
- },
469
- ]
470
- }
471
- />
472
- <Text
473
- style={
474
- Array [
475
- Object {
476
- "color": "#595959",
477
- "fontFamily": "SFProDisplay-Regular",
478
- "fontSize": 12,
479
- "lineHeight": 12,
480
- "textAlign": "left",
481
- "textDecorationLine": "none",
482
- },
483
- Object {},
484
- ]
485
- }
486
- />
487
- <View
488
- style={
489
- Object {
490
- "position": "absolute",
491
- "right": 8,
492
- "top": 8,
493
- }
494
- }
495
- >
496
- <Text
497
- style={
498
- Array [
499
- Object {
500
- "color": "#000",
501
- "fontFamily": "SFProDisplay-Regular",
502
- "fontSize": undefined,
503
- "lineHeight": undefined,
504
- "textAlign": "left",
505
- "textDecorationLine": "none",
506
- },
507
- Object {},
508
- ]
509
- }
510
- >
511
-
512
- </Text>
513
- </View>
514
- </View>
515
- <View
516
- style={
517
- Object {
518
- "backgroundColor": "#FFFFFF",
519
- "borderRadius": 5,
520
- "elevation": 5,
521
- "marginBottom": 16,
522
- "padding": 16,
523
- "shadowColor": "#303133",
524
- "shadowOffset": Object {
525
- "height": 2,
526
- "width": 0,
527
- },
528
- "shadowOpacity": 0.1,
529
- "width": 351,
530
- }
531
- }
532
- >
533
- <View
534
- color="#595959"
535
- size={14}
536
- style={
537
- Object {
538
- "flexDirection": "row",
539
- "justifyContent": "space-between",
540
- "marginBottom": 16,
541
- "width": "100%",
542
- }
543
- }
544
- >
545
- <Text
546
- style={
547
- Array [
548
- Object {
549
- "color": "#000",
550
- "fontFamily": "SFProDisplay-Regular",
551
- "fontSize": undefined,
552
- "lineHeight": undefined,
553
- "textAlign": "left",
554
- "textDecorationLine": "none",
555
- },
556
- Object {},
557
- ]
558
- }
559
- >
560
- Nhiệt độ
561
- </Text>
562
- </View>
563
- <Text
564
- style={
565
- Array [
566
- Object {
567
- "color": "#262626",
568
- "fontFamily": "SFProDisplay-Regular",
569
- "fontSize": 24,
570
- "lineHeight": 24,
571
- "textAlign": "left",
572
- "textDecorationLine": "none",
573
- },
574
- Object {
575
- "marginBottom": 8,
576
- },
577
- ]
578
- }
579
- />
580
- <Text
581
- style={
582
- Array [
583
- Object {
584
- "color": "#595959",
585
- "fontFamily": "SFProDisplay-Regular",
586
- "fontSize": 12,
587
- "lineHeight": 12,
588
- "textAlign": "left",
589
- "textDecorationLine": "none",
590
- },
591
- Object {},
592
- ]
593
- }
594
- >
595
-
596
- </Text>
597
- <View
598
- style={
599
- Object {
600
- "position": "absolute",
601
- "right": 8,
602
- "top": 8,
603
- }
604
- }
605
- >
606
- <Text
607
- style={
608
- Array [
609
- Object {
610
- "color": "#000",
611
- "fontFamily": "SFProDisplay-Regular",
612
- "fontSize": undefined,
613
- "lineHeight": undefined,
614
- "textAlign": "left",
615
- "textDecorationLine": "none",
616
- },
617
- Object {},
618
- ]
619
- }
620
- >
621
-
622
- </Text>
623
- </View>
624
- </View>
625
- </View>
626
- </View>
627
- `;
628
-
629
- exports[`Test WaterQualityGuide render WaterQualityGuide 1`] = `
630
- Array [
631
- <View
632
- style={
633
- Array [
634
- Object {
635
- "backgroundColor": "#FFFFFF",
636
- "borderColor": "#E8E8E8",
637
- "borderRadius": 20,
638
- "borderWidth": 1,
639
- "marginBottom": 16,
640
- "paddingBottom": 24,
641
- "paddingHorizontal": 16,
642
- "paddingTop": 8,
643
- },
644
- undefined,
645
- ]
646
- }
647
- >
648
- <View
649
- style={
650
- Object {
651
- "marginTop": 16,
652
- }
653
- }
654
- >
655
- <Text
656
- style={
657
- Array [
658
- Object {
659
- "color": "#000",
660
- "fontFamily": "SFProDisplay-Semibold",
661
- "fontSize": undefined,
662
- "lineHeight": undefined,
663
- "textAlign": "left",
664
- "textDecorationLine": "none",
665
- },
666
- Object {
667
- "color": "#262626",
668
- "fontSize": 20,
669
- },
670
- ]
671
- }
672
- >
673
- Hôm nay, 24 tháng 1
674
- </Text>
675
- </View>
676
- <Text
677
- style={
678
- Array [
679
- Object {
680
- "color": "#000",
681
- "fontFamily": "SFProDisplay-Regular",
682
- "fontSize": undefined,
683
- "lineHeight": undefined,
684
- "textAlign": "left",
685
- "textDecorationLine": "none",
686
- },
687
- Object {
688
- "fontSize": 12,
689
- "lineHeight": 20,
690
- "marginBottom": 20,
691
- },
692
- ]
693
- }
694
- >
695
- Chất lượng nước tổng thể được dựa trên những thông số dưới đây
696
- </Text>
697
- <View
698
- style={
699
- Object {
700
- "flexDirection": "row",
701
- "flexWrap": "wrap",
702
- "justifyContent": "space-between",
703
- }
704
- }
705
- >
706
- <View
707
- style={
708
- Object {
709
- "backgroundColor": "#FFFFFF",
710
- "borderRadius": 5,
711
- "elevation": 5,
712
- "marginBottom": 16,
713
- "padding": 16,
714
- "shadowColor": "#303133",
715
- "shadowOffset": Object {
716
- "height": 2,
717
- "width": 0,
718
- },
719
- "shadowOpacity": 0.1,
720
- "width": 351,
721
- }
722
- }
723
- >
724
- <View
725
- color="#595959"
726
- size={14}
727
- style={
728
- Object {
729
- "flexDirection": "row",
730
- "justifyContent": "space-between",
731
- "marginBottom": 16,
732
- "width": "100%",
733
- }
734
- }
735
- >
736
- <Text
737
- style={
738
- Array [
739
- Object {
740
- "color": "#000",
741
- "fontFamily": "SFProDisplay-Regular",
742
- "fontSize": undefined,
743
- "lineHeight": undefined,
744
- "textAlign": "left",
745
- "textDecorationLine": "none",
746
- },
747
- Object {},
748
- ]
749
- }
750
- >
751
- Độ đục
752
- </Text>
753
- <RNGestureHandlerButton
754
- collapsable={false}
755
- onGestureEvent={[Function]}
756
- onGestureHandlerEvent={[Function]}
757
- onGestureHandlerStateChange={[Function]}
758
- onHandlerStateChange={[Function]}
759
- rippleColor={0}
760
- >
761
- <View
762
- accessible={true}
763
- style={
764
- Object {
765
- "opacity": 1,
766
- }
767
- }
768
- >
769
- <Text
770
- style={
771
- Array [
772
- Object {
773
- "color": "#000000",
774
- "fontFamily": "antoutline",
775
- "fontSize": 14,
776
- "fontStyle": "normal",
777
- "fontWeight": "normal",
778
- },
779
- Object {
780
- "flexDirection": "row",
781
- },
782
- ]
783
- }
784
- >
785
-
786
- </Text>
787
- </View>
788
- </RNGestureHandlerButton>
789
- </View>
790
- <Text
791
- style={
792
- Array [
793
- Object {
794
- "color": "#262626",
795
- "fontFamily": "SFProDisplay-Regular",
796
- "fontSize": 24,
797
- "lineHeight": 24,
798
- "textAlign": "left",
799
- "textDecorationLine": "none",
800
- },
801
- Object {
802
- "marginBottom": 8,
803
- },
804
- ]
805
- }
806
- >
807
- 1
808
- </Text>
809
- <Text
810
- style={
811
- Array [
812
- Object {
813
- "color": "#595959",
814
- "fontFamily": "SFProDisplay-Regular",
815
- "fontSize": 12,
816
- "lineHeight": 12,
817
- "textAlign": "left",
818
- "textDecorationLine": "none",
819
- },
820
- Object {},
821
- ]
822
- }
823
- >
824
-
825
- </Text>
826
- <View
827
- style={
828
- Object {
829
- "position": "absolute",
830
- "right": 8,
831
- "top": 8,
832
- }
833
- }
834
- >
835
- <Text
836
- style={
837
- Array [
838
- Object {
839
- "color": "#000",
840
- "fontFamily": "SFProDisplay-Regular",
841
- "fontSize": undefined,
842
- "lineHeight": undefined,
843
- "textAlign": "left",
844
- "textDecorationLine": "none",
845
- },
846
- Object {},
847
- ]
848
- }
849
- >
850
-
851
- </Text>
852
- </View>
853
- </View>
854
- <View
855
- style={
856
- Object {
857
- "backgroundColor": "#FFFFFF",
858
- "borderRadius": 5,
859
- "elevation": 5,
860
- "marginBottom": 16,
861
- "padding": 16,
862
- "shadowColor": "#303133",
863
- "shadowOffset": Object {
864
- "height": 2,
865
- "width": 0,
866
- },
867
- "shadowOpacity": 0.1,
868
- "width": 351,
869
- }
870
- }
871
- >
872
- <View
873
- color="#595959"
874
- size={14}
875
- style={
876
- Object {
877
- "flexDirection": "row",
878
- "justifyContent": "space-between",
879
- "marginBottom": 16,
880
- "width": "100%",
881
- }
882
- }
883
- >
884
- <Text
885
- style={
886
- Array [
887
- Object {
888
- "color": "#000",
889
- "fontFamily": "SFProDisplay-Regular",
890
- "fontSize": undefined,
891
- "lineHeight": undefined,
892
- "textAlign": "left",
893
- "textDecorationLine": "none",
894
- },
895
- Object {},
896
- ]
897
- }
898
- >
899
- pH
900
- </Text>
901
- <RNGestureHandlerButton
902
- collapsable={false}
903
- onGestureEvent={[Function]}
904
- onGestureHandlerEvent={[Function]}
905
- onGestureHandlerStateChange={[Function]}
906
- onHandlerStateChange={[Function]}
907
- rippleColor={0}
908
- >
909
- <View
910
- accessible={true}
911
- style={
912
- Object {
913
- "opacity": 1,
914
- }
915
- }
916
- >
917
- <Text
918
- style={
919
- Array [
920
- Object {
921
- "color": "#000000",
922
- "fontFamily": "antoutline",
923
- "fontSize": 14,
924
- "fontStyle": "normal",
925
- "fontWeight": "normal",
926
- },
927
- Object {
928
- "flexDirection": "row",
929
- },
930
- ]
931
- }
932
- >
933
-
934
- </Text>
935
- </View>
936
- </RNGestureHandlerButton>
937
- </View>
938
- <Text
939
- style={
940
- Array [
941
- Object {
942
- "color": "#262626",
943
- "fontFamily": "SFProDisplay-Regular",
944
- "fontSize": 24,
945
- "lineHeight": 24,
946
- "textAlign": "left",
947
- "textDecorationLine": "none",
948
- },
949
- Object {
950
- "marginBottom": 8,
951
- },
952
- ]
953
- }
954
- />
955
- <Text
956
- style={
957
- Array [
958
- Object {
959
- "color": "#595959",
960
- "fontFamily": "SFProDisplay-Regular",
961
- "fontSize": 12,
962
- "lineHeight": 12,
963
- "textAlign": "left",
964
- "textDecorationLine": "none",
965
- },
966
- Object {},
967
- ]
968
- }
969
- />
970
- <View
971
- style={
972
- Object {
973
- "position": "absolute",
974
- "right": 8,
975
- "top": 8,
976
- }
977
- }
978
- >
979
- <Text
980
- style={
981
- Array [
982
- Object {
983
- "color": "#000",
984
- "fontFamily": "SFProDisplay-Regular",
985
- "fontSize": undefined,
986
- "lineHeight": undefined,
987
- "textAlign": "left",
988
- "textDecorationLine": "none",
989
- },
990
- Object {},
991
- ]
992
- }
993
- >
994
-
995
- </Text>
996
- </View>
997
- </View>
998
- <View
999
- style={
1000
- Object {
1001
- "backgroundColor": "#FFFFFF",
1002
- "borderRadius": 5,
1003
- "elevation": 5,
1004
- "marginBottom": 16,
1005
- "padding": 16,
1006
- "shadowColor": "#303133",
1007
- "shadowOffset": Object {
1008
- "height": 2,
1009
- "width": 0,
1010
- },
1011
- "shadowOpacity": 0.1,
1012
- "width": 351,
1013
- }
1014
- }
1015
- >
1016
- <View
1017
- color="#595959"
1018
- size={14}
1019
- style={
1020
- Object {
1021
- "flexDirection": "row",
1022
- "justifyContent": "space-between",
1023
- "marginBottom": 16,
1024
- "width": "100%",
1025
- }
1026
- }
1027
- >
1028
- <Text
1029
- style={
1030
- Array [
1031
- Object {
1032
- "color": "#000",
1033
- "fontFamily": "SFProDisplay-Regular",
1034
- "fontSize": undefined,
1035
- "lineHeight": undefined,
1036
- "textAlign": "left",
1037
- "textDecorationLine": "none",
1038
- },
1039
- Object {},
1040
- ]
1041
- }
1042
- >
1043
- Clo dư
1044
- </Text>
1045
- <RNGestureHandlerButton
1046
- collapsable={false}
1047
- onGestureEvent={[Function]}
1048
- onGestureHandlerEvent={[Function]}
1049
- onGestureHandlerStateChange={[Function]}
1050
- onHandlerStateChange={[Function]}
1051
- rippleColor={0}
1052
- >
1053
- <View
1054
- accessible={true}
1055
- style={
1056
- Object {
1057
- "opacity": 1,
1058
- }
1059
- }
1060
- >
1061
- <Text
1062
- style={
1063
- Array [
1064
- Object {
1065
- "color": "#000000",
1066
- "fontFamily": "antoutline",
1067
- "fontSize": 14,
1068
- "fontStyle": "normal",
1069
- "fontWeight": "normal",
1070
- },
1071
- Object {
1072
- "flexDirection": "row",
1073
- },
1074
- ]
1075
- }
1076
- >
1077
-
1078
- </Text>
1079
- </View>
1080
- </RNGestureHandlerButton>
1081
- </View>
1082
- <Text
1083
- style={
1084
- Array [
1085
- Object {
1086
- "color": "#262626",
1087
- "fontFamily": "SFProDisplay-Regular",
1088
- "fontSize": 24,
1089
- "lineHeight": 24,
1090
- "textAlign": "left",
1091
- "textDecorationLine": "none",
1092
- },
1093
- Object {
1094
- "marginBottom": 8,
1095
- },
1096
- ]
1097
- }
1098
- />
1099
- <Text
1100
- style={
1101
- Array [
1102
- Object {
1103
- "color": "#595959",
1104
- "fontFamily": "SFProDisplay-Regular",
1105
- "fontSize": 12,
1106
- "lineHeight": 12,
1107
- "textAlign": "left",
1108
- "textDecorationLine": "none",
1109
- },
1110
- Object {},
1111
- ]
1112
- }
1113
- />
1114
- <View
1115
- style={
1116
- Object {
1117
- "position": "absolute",
1118
- "right": 8,
1119
- "top": 8,
1120
- }
1121
- }
1122
- >
1123
- <Text
1124
- style={
1125
- Array [
1126
- Object {
1127
- "color": "#000",
1128
- "fontFamily": "SFProDisplay-Regular",
1129
- "fontSize": undefined,
1130
- "lineHeight": undefined,
1131
- "textAlign": "left",
1132
- "textDecorationLine": "none",
1133
- },
1134
- Object {},
1135
- ]
1136
- }
1137
- >
1138
-
1139
- </Text>
1140
- </View>
1141
- </View>
1142
- <View
1143
- style={
1144
- Object {
1145
- "backgroundColor": "#FFFFFF",
1146
- "borderRadius": 5,
1147
- "elevation": 5,
1148
- "marginBottom": 16,
1149
- "padding": 16,
1150
- "shadowColor": "#303133",
1151
- "shadowOffset": Object {
1152
- "height": 2,
1153
- "width": 0,
1154
- },
1155
- "shadowOpacity": 0.1,
1156
- "width": 351,
1157
- }
1158
- }
1159
- >
1160
- <View
1161
- color="#595959"
1162
- size={14}
1163
- style={
1164
- Object {
1165
- "flexDirection": "row",
1166
- "justifyContent": "space-between",
1167
- "marginBottom": 16,
1168
- "width": "100%",
1169
- }
1170
- }
1171
- >
1172
- <Text
1173
- style={
1174
- Array [
1175
- Object {
1176
- "color": "#000",
1177
- "fontFamily": "SFProDisplay-Regular",
1178
- "fontSize": undefined,
1179
- "lineHeight": undefined,
1180
- "textAlign": "left",
1181
- "textDecorationLine": "none",
1182
- },
1183
- Object {},
1184
- ]
1185
- }
1186
- >
1187
- Nhiệt độ
1188
- </Text>
1189
- </View>
1190
- <Text
1191
- style={
1192
- Array [
1193
- Object {
1194
- "color": "#262626",
1195
- "fontFamily": "SFProDisplay-Regular",
1196
- "fontSize": 24,
1197
- "lineHeight": 24,
1198
- "textAlign": "left",
1199
- "textDecorationLine": "none",
1200
- },
1201
- Object {
1202
- "marginBottom": 8,
1203
- },
1204
- ]
1205
- }
1206
- />
1207
- <Text
1208
- style={
1209
- Array [
1210
- Object {
1211
- "color": "#595959",
1212
- "fontFamily": "SFProDisplay-Regular",
1213
- "fontSize": 12,
1214
- "lineHeight": 12,
1215
- "textAlign": "left",
1216
- "textDecorationLine": "none",
1217
- },
1218
- Object {},
1219
- ]
1220
- }
1221
- >
1222
-
1223
- </Text>
1224
- <View
1225
- style={
1226
- Object {
1227
- "position": "absolute",
1228
- "right": 8,
1229
- "top": 8,
1230
- }
1231
- }
1232
- >
1233
- <Text
1234
- style={
1235
- Array [
1236
- Object {
1237
- "color": "#000",
1238
- "fontFamily": "SFProDisplay-Regular",
1239
- "fontSize": undefined,
1240
- "lineHeight": undefined,
1241
- "textAlign": "left",
1242
- "textDecorationLine": "none",
1243
- },
1244
- Object {},
1245
- ]
1246
- }
1247
- >
1248
-
1249
- </Text>
1250
- </View>
1251
- </View>
1252
- </View>
1253
- </View>,
1254
- <View
1255
- style={
1256
- Array [
1257
- Object {
1258
- "backgroundColor": "#FFFFFF",
1259
- "borderColor": "#E8E8E8",
1260
- "borderRadius": 20,
1261
- "borderWidth": 1,
1262
- "marginBottom": 16,
1263
- "paddingBottom": 24,
1264
- "paddingHorizontal": 16,
1265
- "paddingTop": 8,
1266
- },
1267
- undefined,
1268
- ]
1269
- }
1270
- >
1271
- <View>
1272
- <View
1273
- style={
1274
- Object {
1275
- "paddingTop": 16,
1276
- }
1277
- }
1278
- >
1279
- <Text
1280
- style={
1281
- Array [
1282
- Object {
1283
- "color": "#262626",
1284
- "fontFamily": "SFProDisplay-Semibold",
1285
- "fontSize": 20,
1286
- "lineHeight": 20,
1287
- "textAlign": "left",
1288
- "textDecorationLine": "none",
1289
- },
1290
- Object {},
1291
- ]
1292
- }
1293
- >
1294
- Lịch sử
1295
- </Text>
1296
- <View
1297
- style={
1298
- Array [
1299
- Object {
1300
- "alignItems": "center",
1301
- "flexDirection": "row",
1302
- "marginTop": 16,
1303
- "width": "100%",
1304
- },
1305
- undefined,
1306
- ]
1307
- }
1308
- >
1309
- <Text
1310
- style={
1311
- Array [
1312
- Object {
1313
- "color": "#8C8C8C",
1314
- "fontFamily": "SFProDisplay-Regular",
1315
- "fontSize": 12,
1316
- "lineHeight": 12,
1317
- "textAlign": "left",
1318
- "textDecorationLine": "none",
1319
- },
1320
- Object {},
1321
- ]
1322
- }
1323
- >
1324
- từ
1325
- </Text>
1326
- <View
1327
- accessible={true}
1328
- focusable={true}
1329
- onClick={[Function]}
1330
- onResponderGrant={[Function]}
1331
- onResponderMove={[Function]}
1332
- onResponderRelease={[Function]}
1333
- onResponderTerminate={[Function]}
1334
- onResponderTerminationRequest={[Function]}
1335
- onStartShouldSetResponder={[Function]}
1336
- style={
1337
- Object {
1338
- "alignItems": "center",
1339
- "borderColor": "#D9D9D9",
1340
- "borderRadius": 2,
1341
- "borderWidth": 1,
1342
- "flexDirection": "row",
1343
- "justifyContent": "space-between",
1344
- "marginHorizontal": 8,
1345
- "opacity": 1,
1346
- "paddingLeft": 12,
1347
- "paddingRight": 8,
1348
- "paddingVertical": 8,
1349
- "width": 124,
1350
- }
1351
- }
1352
- >
1353
- <Text
1354
- style={
1355
- Array [
1356
- Object {
1357
- "color": "#595959",
1358
- "fontFamily": "SFProDisplay-Regular",
1359
- "fontSize": 12,
1360
- "lineHeight": 20,
1361
- "textAlign": "left",
1362
- "textDecorationLine": "none",
1363
- },
1364
- Object {
1365
- "marginRight": 4,
1366
- },
1367
- ]
1368
- }
1369
- >
1370
- 23.01.21 12:00
1371
- </Text>
1372
- <Text
1373
- style={
1374
- Array [
1375
- Object {
1376
- "color": "#595959",
1377
- "fontFamily": "antfill",
1378
- "fontSize": 16,
1379
- "fontStyle": "normal",
1380
- "fontWeight": "normal",
1381
- },
1382
- undefined,
1383
- ]
1384
- }
1385
- >
1386
-
1387
- </Text>
1388
- </View>
1389
- <Text
1390
- style={
1391
- Array [
1392
- Object {
1393
- "color": "#8C8C8C",
1394
- "fontFamily": "SFProDisplay-Regular",
1395
- "fontSize": 12,
1396
- "lineHeight": 12,
1397
- "textAlign": "left",
1398
- "textDecorationLine": "none",
1399
- },
1400
- Object {},
1401
- ]
1402
- }
1403
- >
1404
- đến
1405
- </Text>
1406
- <View
1407
- accessible={true}
1408
- focusable={true}
1409
- onClick={[Function]}
1410
- onResponderGrant={[Function]}
1411
- onResponderMove={[Function]}
1412
- onResponderRelease={[Function]}
1413
- onResponderTerminate={[Function]}
1414
- onResponderTerminationRequest={[Function]}
1415
- onStartShouldSetResponder={[Function]}
1416
- style={
1417
- Object {
1418
- "alignItems": "center",
1419
- "borderColor": "#D9D9D9",
1420
- "borderRadius": 2,
1421
- "borderWidth": 1,
1422
- "flexDirection": "row",
1423
- "justifyContent": "space-between",
1424
- "marginHorizontal": 8,
1425
- "opacity": 1,
1426
- "paddingLeft": 12,
1427
- "paddingRight": 8,
1428
- "paddingVertical": 8,
1429
- "width": 124,
1430
- }
1431
- }
1432
- >
1433
- <Text
1434
- style={
1435
- Array [
1436
- Object {
1437
- "color": "#595959",
1438
- "fontFamily": "SFProDisplay-Regular",
1439
- "fontSize": 12,
1440
- "lineHeight": 20,
1441
- "textAlign": "left",
1442
- "textDecorationLine": "none",
1443
- },
1444
- Object {
1445
- "marginRight": 4,
1446
- },
1447
- ]
1448
- }
1449
- >
1450
- 24.01.21 12:00
1451
- </Text>
1452
- <Text
1453
- style={
1454
- Array [
1455
- Object {
1456
- "color": "#595959",
1457
- "fontFamily": "antfill",
1458
- "fontSize": 16,
1459
- "fontStyle": "normal",
1460
- "fontWeight": "normal",
1461
- },
1462
- undefined,
1463
- ]
1464
- }
1465
- >
1466
-
1467
- </Text>
1468
- </View>
1469
- </View>
1470
- </View>
1471
- <View
1472
- style={
1473
- Object {
1474
- "marginLeft": -8,
1475
- }
1476
- }
1477
- >
1478
- <View
1479
- style={
1480
- Array [
1481
- Object {
1482
- "height": 300,
1483
- },
1484
- Object {
1485
- "width": 750,
1486
- },
1487
- ]
1488
- }
1489
- >
1490
- <View
1491
- style={
1492
- Object {
1493
- "backgroundColor": "#FFFFFF",
1494
- "flex": 1,
1495
- "justifyContent": "center",
1496
- "marginRight": 24,
1497
- "marginTop": 24,
1498
- }
1499
- }
1500
- >
1501
- <View />
1502
- </View>
1503
- </View>
1504
- </View>
1505
- <Modal
1506
- animationType="none"
1507
- hardwareAccelerated={false}
1508
- isVisible={false}
1509
- onHide={[Function]}
1510
- transparent={true}
1511
- visible={false}
1512
- >
1513
- <View
1514
- accessible={true}
1515
- focusable={true}
1516
- onClick={[Function]}
1517
- onResponderGrant={[Function]}
1518
- onResponderMove={[Function]}
1519
- onResponderRelease={[Function]}
1520
- onResponderTerminate={[Function]}
1521
- onResponderTerminationRequest={[Function]}
1522
- onStartShouldSetResponder={[Function]}
1523
- style={
1524
- Object {
1525
- "backgroundColor": "black",
1526
- "bottom": 0,
1527
- "height": 1334,
1528
- "left": 0,
1529
- "opacity": 0,
1530
- "position": "absolute",
1531
- "right": 0,
1532
- "top": 0,
1533
- "width": 750,
1534
- }
1535
- }
1536
- />
1537
- </Modal>
1538
- <Modal
1539
- animationType="none"
1540
- hardwareAccelerated={false}
1541
- isVisible={false}
1542
- onHide={[Function]}
1543
- transparent={true}
1544
- visible={false}
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
- "backgroundColor": "black",
1559
- "bottom": 0,
1560
- "height": 1334,
1561
- "left": 0,
1562
- "opacity": 0,
1563
- "position": "absolute",
1564
- "right": 0,
1565
- "top": 0,
1566
- "width": 750,
1567
- }
1568
- }
1569
- />
1570
- </Modal>
1571
- </View>
1572
- </View>,
1573
- ]
1574
- `;