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