@eohjsc/react-native-smart-city 0.3.29 → 0.3.32
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.
- package/package.json +7 -5
- package/src/Images/DevMode/close.png +0 -0
- package/src/Images/DevMode/close@2x.png +0 -0
- package/src/Images/DevMode/close@3x.png +0 -0
- package/src/Images/DevMode/plus.png +0 -0
- package/src/Images/DevMode/plus@2x.png +0 -0
- package/src/Images/DevMode/plus@3x.png +0 -0
- package/src/Images/DevMode/remove_circle.png +0 -0
- package/src/Images/DevMode/remove_circle@2x.png +0 -0
- package/src/Images/DevMode/remove_circle@3x.png +0 -0
- package/src/commons/Action/ItemQuickAction.js +2 -2
- package/src/commons/Action/__test__/ItemQuickAction.test.js +17 -9
- package/src/commons/ActionGroup/ColorPickerTemplate.js +36 -17
- package/src/commons/ActionGroup/CurtainButtonTemplate.js +6 -6
- package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +18 -13
- package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/ButtonWrapper.js +5 -2
- package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/__test__/index.test.js +10 -4
- package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/index.js +4 -4
- package/src/commons/ActionGroup/OnOffSmartLock/OnOffSmartLock.js +38 -45
- package/src/commons/ActionGroup/OnOffSmartLock/OnOffSmartLockStyle.js +1 -0
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/ItemPasscode.js +1 -1
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/__test__/index.test.js +2 -2
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/index.js +2 -2
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/ButtonWrapper.js +2 -2
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/__test__/index.test.js +12 -6
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/index.js +8 -4
- package/src/commons/ActionGroup/OnOffTemplate/OnOffButtonTemplate.js +9 -10
- package/src/commons/ActionGroup/OnOffTemplate/index.js +2 -2
- package/src/commons/ActionGroup/OneBigButtonTemplate.js +5 -5
- package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +38 -22
- package/src/commons/ActionGroup/SliderRangeTemplate.js +24 -16
- package/src/commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate.js +25 -9
- package/src/commons/ActionGroup/SmartTiviActionTemplate/__test__/ControlPlay.test.js +13 -7
- package/src/commons/ActionGroup/SmartTiviActionTemplate/__test__/RectangleButton.test.js +9 -5
- package/src/commons/ActionGroup/SmartTiviActionTemplate/__test__/SmartTiviActionTemplate.test.js +25 -9
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/CircleButton.js +16 -6
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/ControlPlay.js +10 -4
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/RectangleButton.js +7 -3
- package/src/commons/ActionGroup/StatesGridActionTemplate.js +2 -2
- package/src/commons/ActionGroup/ThreeButtonTemplate.js +50 -60
- package/src/commons/ActionGroup/TwoButtonTemplate/index.js +135 -133
- package/src/commons/ActionGroup/__test__/NumberUpDownTemplate.test.js +7 -7
- package/src/commons/ActionGroup/__test__/OnOffSmartLock.test.js +3 -3
- package/src/commons/ActionGroup/__test__/OnOffTemplate.test.js +3 -3
- package/src/commons/ActionGroup/__test__/OptionsDropdownTemplate.test.js +9 -5
- package/src/commons/ActionGroup/__test__/index.test.js +7 -5
- package/src/commons/ActionGroup/index.js +35 -10
- package/src/commons/AlertAction/index.js +2 -2
- package/src/commons/Auth/AccountItem.js +9 -3
- package/src/commons/Auth/__test__/AccountItem.test.js +6 -3
- package/src/commons/Automate/ItemAutomate.js +13 -3
- package/src/commons/BackDefault/index.js +2 -2
- package/src/commons/BottomButtonView/index.js +4 -4
- package/src/commons/Button/index.js +2 -2
- package/src/commons/ButtonPopup/index.js +3 -3
- package/src/commons/Dashboard/MyPinnedSharedUnit/__test__/MyPinnedSharedUnit.test.js +3 -2
- package/src/commons/Dashboard/MyPinnedSharedUnit/index.js +4 -2
- package/src/commons/Dashboard/MyUnit/__test__/MyUnit.test.js +6 -3
- package/src/commons/Dashboard/MyUnit/index.js +5 -3
- package/src/commons/DevMode/CardDevMode.js +42 -0
- package/src/commons/DevMode/EmptyComponent.js +18 -0
- package/src/commons/DevMode/Item.js +21 -0
- package/src/commons/DevMode/Styles/CardStyles.js +40 -0
- package/src/commons/DevMode/Styles/EmptyComponentStyles.js +15 -0
- package/src/commons/DevMode/Styles/ItemStyles.js +27 -0
- package/src/commons/DevMode/Styles/TextWithLabelStyles.js +36 -0
- package/src/commons/DevMode/TextWithLabel.js +30 -0
- package/src/commons/DevMode/index.js +5 -1
- package/src/commons/Device/ConnectedViewHeader.js +2 -2
- package/src/commons/Device/DeviceAlertStatus.js +3 -3
- package/src/commons/Device/DisconnectedView.js +2 -2
- package/src/commons/Device/Emergency/EmergencyButton.js +2 -2
- package/src/commons/Device/Emergency/EmergencyDetail.js +1 -1
- package/src/commons/Device/Emergency/__test__/EmergencyButton.test.js +3 -2
- package/src/commons/Device/FlatListItems.js +2 -2
- package/src/commons/Device/ItemAddNew/index.js +10 -11
- package/src/commons/Device/ItemDevice.js +27 -20
- package/src/commons/Device/PMSensor/PMSensorIndicatior.js +1 -1
- package/src/commons/Device/RainningSensor/CurrentRainSensor.js +1 -1
- package/src/commons/Device/SensorConnectedStatus.js +5 -2
- package/src/commons/Device/WindDirection/Compass/index.js +6 -3
- package/src/commons/Device/WindSpeed/Anemometer/index.js +1 -1
- package/src/commons/Device/__test__/DeviceAlertStatus.test.js +8 -4
- package/src/commons/Device/__test__/FlatListItems.test.js +3 -2
- package/src/commons/Device/__test__/SensorConnectedStatus.test.js +4 -2
- package/src/commons/Explore/ActivityIndicator/index.js +5 -2
- package/src/commons/Explore/SearchBox/__test__/SearchBox.test.js +3 -3
- package/src/commons/Explore/SearchBox/index.js +2 -2
- package/src/commons/FieldTemplate/ChooseUserField/ChoosePopup.js +4 -4
- package/src/commons/FieldTemplate/ChooseUserField/__test__/index.test.js +11 -8
- package/src/commons/FieldTemplate/ChooseUserField/index.js +2 -2
- package/src/commons/FieldTemplate/PasscodeField/__test__/index.test.js +3 -2
- package/src/commons/FieldTemplate/PasscodeField/index.js +2 -2
- package/src/commons/FieldTemplate/ScheduleField/__test__/index.test.js +12 -7
- package/src/commons/Form/TextInput.js +2 -2
- package/src/commons/Form/TextInputPassword.js +2 -2
- package/src/commons/GroupCheckBox/__test__/GroupCheckBox.test.js +5 -3
- package/src/commons/GroupCheckBox/index.js +2 -2
- package/src/commons/Header/HeaderCustom.js +8 -2
- package/src/commons/HeaderAni/index.js +2 -3
- package/src/commons/MediaPlayerDetail/index.js +2 -2
- package/src/commons/MenuActionList/index.js +2 -2
- package/src/commons/MenuActionMore/index.js +6 -5
- package/src/commons/NavBar/index.js +4 -4
- package/src/commons/OneTapTemplate/NumberUpDownActionTemplate.js +11 -5
- package/src/commons/OneTapTemplate/OptionsDropdownActionTemplate.js +7 -3
- package/src/commons/OneTapTemplate/StatesGridActionTemplate.js +4 -2
- package/src/commons/OneTapTemplate/__test__/NumberUpDownActionTemplate.test.js +11 -8
- package/src/commons/OneTapTemplate/__test__/OptionsDropdownActionTemplate.test.js +9 -5
- package/src/commons/OneTapTemplate/__test__/StatesGridActionTemplate.test.js +5 -3
- package/src/commons/Popover/index.js +2 -12
- package/src/commons/PreventAccess/__test__/PreventAccess.test.js +5 -3
- package/src/commons/PreventAccess/index.js +3 -3
- package/src/commons/{Connecting → Processing}/__test__/Connecting.test.js +5 -4
- package/src/commons/Processing/index.js +93 -0
- package/src/commons/{Connecting → Processing}/styles.js +9 -1
- package/src/commons/SelectGateway/index.js +105 -0
- package/src/commons/SelectGateway/styles.js +55 -0
- package/src/commons/SelectSubUnit/__test__/SelectSubUnit.test.js +106 -0
- package/src/commons/SelectSubUnit/index.js +124 -0
- package/src/commons/SelectSubUnit/styles.js +55 -0
- package/src/commons/SelectUnit/__test__/SelectUnit.test.js +120 -0
- package/src/commons/SelectUnit/index.js +106 -0
- package/src/commons/SelectUnit/styles.js +54 -0
- package/src/commons/Sharing/WrapHeaderScrollable.js +6 -4
- package/src/commons/SubUnit/OneTap/ItemOneTap.js +7 -4
- package/src/commons/SubUnit/OneTap/__test__/SubUnitAutomate.test.js +25 -10
- package/src/commons/SubUnit/OneTap/index.js +9 -4
- package/src/commons/SubUnit/ShortDetail.js +11 -29
- package/src/commons/SubUnit/__test__/ShortDetail.test.js +15 -10
- package/src/commons/SummaryItem/index.js +2 -2
- package/src/commons/Unit/HeaderUnit/index.js +4 -5
- package/src/commons/Unit/SharedUnit.js +10 -8
- package/src/commons/Unit/__test__/HeaderUnit.test.js +13 -5
- package/src/commons/Unit/__test__/SharedUnit.test.js +30 -11
- package/src/commons/UnitSummary/AirQuality/__test__/index.test.js +13 -8
- package/src/commons/UnitSummary/AirQuality/index.js +7 -3
- package/src/commons/UnitSummary/TotalPowerBox.js +2 -2
- package/src/commons/UnitSummary/TotalPowerConsumption/index.js +2 -2
- package/src/commons/UnitSummary/__test__/TotalPowerBox.test.js +3 -2
- package/src/commons/UnitSummary/__test__/TotalPowerConsumption.test.js +4 -2
- package/src/commons/ViewButtonBottom/index.js +4 -4
- package/src/commons/WheelDateTimePicker/index.js +5 -3
- package/src/commons/WrapParallaxScrollView/index.js +2 -1
- package/src/configs/API.js +12 -14
- package/src/configs/AccessibilityLabel.js +608 -0
- package/src/configs/Colors.js +4 -0
- package/src/configs/Constants.js +1 -593
- package/src/configs/Images.js +3 -0
- package/src/context/actionType.ts +19 -3
- package/src/context/mockStore.ts +18 -3
- package/src/context/reducer.ts +66 -9
- package/src/hoc/withRemoteControl.js +1 -0
- package/src/hooks/Common/index.js +2 -2
- package/src/hooks/Common/useDevicesStatus.js +1 -1
- package/src/hooks/Common/{useGGHomeDeviceConnected.js → useHomeAssistantDeviceConnected.js} +3 -3
- package/src/hooks/Common/usePopover.js +6 -1
- package/src/hooks/IoT/__test__/{useGGHomeConnection.test.js → useHomeAssistantConnection.test.js} +18 -18
- package/src/hooks/IoT/__test__/useRemoteControl.test.js +17 -12
- package/src/hooks/IoT/index.js +2 -2
- package/src/hooks/IoT/useHomeAssistantConnection.js +91 -0
- package/src/hooks/IoT/useRemoteControl.js +6 -6
- package/src/hooks/IoT/useValueEvaluation.js +10 -19
- package/src/iot/RemoteControl/{GoogleHome.js → HomeAssistant.js} +27 -23
- package/src/iot/RemoteControl/LG.js +2 -1
- package/src/iot/RemoteControl/__test__/{GoogleHome.test.js → HomeAssistant.test.js} +30 -30
- package/src/navigations/AddDeviceStack.js +0 -14
- package/src/navigations/AddGatewayStack.js +51 -21
- package/src/navigations/Main.js +28 -4
- package/src/navigations/SmartIrStack.js +3 -3
- package/src/navigations/UnitStack.js +5 -8
- package/src/screens/AQIGuide/__test__/AQIGuide.test.js +5 -3
- package/src/screens/AQIGuide/index.js +5 -3
- package/src/screens/ActivityLog/FilterPopup.js +2 -2
- package/src/screens/ActivityLog/__test__/FilterPopup.test.js +2 -2
- package/src/screens/ActivityLog/__test__/index.test.js +3 -2
- package/src/screens/ActivityLog/index.js +3 -3
- package/src/screens/AddCommon/SelectSubUnit.js +44 -191
- package/src/screens/AddCommon/SelectUnit.js +51 -204
- package/src/screens/AddCommon/__test__/SelectSubUnit.test.js +7 -50
- package/src/screens/AddCommon/__test__/SelectUnit.test.js +28 -26
- package/src/screens/AddLocationMaps/__test__/index.test.js +13 -7
- package/src/screens/AddLocationMaps/index.js +3 -3
- package/src/screens/AddNewAction/Device/index.js +5 -1
- package/src/screens/AddNewAction/SelectAction.js +36 -20
- package/src/screens/AddNewAction/SelectSensorDevices.js +3 -3
- package/src/screens/AddNewAction/__test__/SelectAction.test.js +3 -2
- package/src/screens/AddNewAction/__test__/SelectSensorDevices.test.js +8 -3
- package/src/screens/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +11 -7
- package/src/screens/AddNewAutoSmart/index.js +11 -12
- package/src/screens/AddNewDevice/ConnectingDevices.js +1 -1
- package/src/screens/AddNewDevice/__test__/AddNewDevice.test.js +7 -4
- package/src/screens/AddNewDevice/index.js +4 -4
- package/src/screens/AddNewGateway/ConnectingDevice.js +40 -0
- package/src/screens/AddNewGateway/ConnectingModbusDevice.js +61 -0
- package/src/screens/AddNewGateway/ConnectingWifiDevice.js +70 -0
- package/src/screens/AddNewGateway/ConnectingZigbeeDevice.js +60 -0
- package/src/screens/AddNewGateway/PlugAndPlay/FirstWarning.js +21 -8
- package/src/screens/AddNewGateway/PlugAndPlay/__test__/FirstWarning.test.js +23 -4
- package/src/screens/AddNewGateway/RenameNewDevices.js +141 -0
- package/src/screens/AddNewGateway/RenameNewDevicesStyles.js +75 -0
- package/src/screens/AddNewGateway/ScanGatewayQR.js +57 -0
- package/src/screens/AddNewGateway/ScanModbusQR.js +53 -0
- package/src/screens/AddNewGateway/ScanWifiDeviceQR.js +55 -0
- package/src/screens/AddNewGateway/SelectDeviceSubUnit.js +31 -0
- package/src/screens/AddNewGateway/SelectDeviceType.js +52 -0
- package/src/screens/AddNewGateway/SelectDeviceUnit.js +29 -0
- package/src/screens/AddNewGateway/SelectModbusGateway.js +34 -0
- package/src/screens/AddNewGateway/SelectZigbeeGateway.js +34 -0
- package/src/screens/AddNewGateway/ShareWifiPassword.js +302 -0
- package/src/screens/AddNewGateway/ShareWifiPasswordStyles.js +44 -0
- package/src/screens/AddNewGateway/__test__/AddNewGateway.test.js +7 -4
- package/src/screens/AddNewGateway/__test__/ConnectingModbusDevice.test.js +63 -0
- package/src/screens/AddNewGateway/__test__/{SelectGateway.test.js → ConnectingWifiDevice.test.js} +15 -10
- package/src/screens/AddNewGateway/__test__/ConnectingZigbeeDevice.test.js +62 -0
- package/src/screens/AddNewGateway/__test__/RenameNewDevices.test.js +191 -0
- package/src/screens/AddNewGateway/__test__/ScanGatewayQR.test.js +73 -0
- package/src/screens/AddNewGateway/__test__/ScanModbusQR.test.js +75 -0
- package/src/screens/AddNewGateway/__test__/ScanWifiDeviceQR.test.js +73 -0
- package/src/screens/AddNewGateway/__test__/SelectDeviceSubUnit.test.js +47 -0
- package/src/screens/AddNewGateway/__test__/SelectDeviceType.test.js +89 -0
- package/src/screens/AddNewGateway/__test__/SelectDeviceUnit.test.js +48 -0
- package/src/screens/AddNewGateway/__test__/SelectModbusGateway.test.js +77 -0
- package/src/screens/AddNewGateway/__test__/SelectZigbeeGateway.test.js +77 -0
- package/src/screens/AddNewGateway/__test__/ShareWifiPassword.test.js +294 -0
- package/src/screens/AddNewGateway/hooks/__Tests__/index.test.js +27 -0
- package/src/screens/AddNewGateway/index.js +4 -4
- package/src/screens/AddNewOneTap/__test__/AddNewOneTap.test.js +5 -4
- package/src/screens/AddNewOneTap/index.js +4 -4
- package/src/screens/Automate/__test__/index.test.js +2 -2
- package/src/screens/Automate/index.js +6 -2
- package/src/screens/ConfirmUnitDeletion/__test__/ConfirmUnitDeletion.test.js +3 -2
- package/src/screens/ConfirmUnitDeletion/index.js +3 -3
- package/src/screens/Device/EditDevice/__test__/EditDevice.test.js +5 -5
- package/src/screens/Device/EditDevice/index.js +3 -3
- package/src/screens/Device/__test__/detail.test.js +38 -22
- package/src/screens/Device/components/DetailHistoryChart.js +7 -5
- package/src/screens/Device/components/SensorConnectStatusViewHeader.js +16 -17
- package/src/screens/Device/components/SensorDisplayItem.js +51 -26
- package/src/screens/Device/detail.js +65 -38
- package/src/screens/Device/hooks/useEvaluateValue.js +0 -2
- package/src/screens/Device/hooks/useFavoriteDevice.js +4 -2
- package/src/screens/DeviceInfo/__test__/index.test.js +8 -4
- package/src/screens/DeviceInfo/index.js +10 -6
- package/src/screens/Drawer/index.js +30 -13
- package/src/screens/EmergencyContacts/EmergencyContactsAddNew.js +11 -7
- package/src/screens/EmergencyContacts/EmergencyContactsList.js +1 -1
- package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +9 -10
- package/src/screens/EmergencyContacts/__test__/EmergencyContactAddNew.test.js +9 -5
- package/src/screens/EmergencyContacts/__test__/EmergencyContactList.test.js +7 -3
- package/src/screens/EmergencyContacts/__test__/EmergencyContactsSelectContacts.test.js +7 -3
- package/src/screens/EmergencySetting/__test__/DropDownItem.test.js +3 -2
- package/src/screens/EmergencySetting/components/DropDownItem.js +2 -2
- package/src/screens/EnterPassword/__test__/EnterPassword.test.js +6 -3
- package/src/screens/EnterPassword/index.js +5 -3
- package/src/screens/GuestInfo/__test__/index.test.js +18 -12
- package/src/screens/GuestInfo/components/AccessScheduleItem.js +2 -2
- package/src/screens/GuestInfo/components/AccessScheduleSheet.js +3 -3
- package/src/screens/GuestInfo/components/HeaderGuestInfo.js +2 -2
- package/src/screens/GuestInfo/components/RecurringDetail.js +4 -4
- package/src/screens/GuestInfo/components/TemporaryDetail.js +3 -3
- package/src/screens/GuestInfo/index.js +1 -1
- package/src/screens/HanetCamera/Detail.js +10 -4
- package/src/screens/HanetCamera/ManageAccess.js +4 -4
- package/src/screens/HanetCamera/MemberInfo.js +1 -1
- package/src/screens/HanetCamera/__test__/Detail.test.js +5 -3
- package/src/screens/HanetCamera/__test__/ManageAccess.test.js +10 -4
- package/src/screens/HanetCamera/__test__/MemberInfo.test.js +4 -2
- package/src/screens/HanetCamera/components/RequestFaceIDPopup.js +2 -2
- package/src/screens/ManageAccess/index.js +1 -1
- package/src/screens/MoveToAnotherSubUnit/__test__/index.test.js +4 -4
- package/src/screens/MoveToAnotherSubUnit/index.js +2 -2
- package/src/screens/Notification/__test__/NotificationItem.test.js +6 -30
- package/src/screens/Notification/components/NotificationItem.js +3 -19
- package/src/screens/PlayBackCamera/__test__/index.test.js +9 -6
- package/src/screens/PlayBackCamera/index.js +6 -6
- package/src/screens/ScanChipQR/components/QRScan/__test__/QRScan.test.js +1 -1
- package/src/screens/ScanChipQR/components/QRScan/index.js +10 -3
- package/src/screens/ScriptDetail/__test__/index.test.js +8 -4
- package/src/screens/ScriptDetail/index.js +7 -5
- package/src/screens/SelectUnit/__test__/index.test.js +4 -3
- package/src/screens/SelectUnit/index.js +3 -3
- package/src/screens/SetSchedule/index.js +1 -1
- package/src/screens/Sharing/Components/SensorItem.js +6 -3
- package/src/screens/Sharing/Components/Styles/SensorItemStyles.js +4 -0
- package/src/screens/Sharing/Components/Styles/TitleCheckBoxStyles.js +4 -0
- package/src/screens/Sharing/Components/TitleCheckBox.js +17 -8
- package/src/screens/Sharing/Components/__test__/SensorItem.test.js +4 -2
- package/src/screens/Sharing/InfoMemberUnit.js +7 -6
- package/src/screens/Sharing/MemberList.js +4 -4
- package/src/screens/Sharing/SelectPermission.js +9 -4
- package/src/screens/Sharing/SelectUser.js +9 -5
- package/src/screens/Sharing/__test__/InfoMemberUnit.test.js +3 -2
- package/src/screens/Sharing/__test__/SelectUser.test.js +7 -4
- package/src/screens/SideMenuDetail/__test__/index.test.js +11 -7
- package/src/screens/SideMenuDetail/index.js +2 -2
- package/src/screens/SmartIr/__test__/GroupButtonByType.test.js +4 -2
- package/src/screens/SmartIr/__test__/SelectDeviceType.test.js +5 -5
- package/src/screens/SmartIr/__test__/SmartIr.test.js +14 -6
- package/src/screens/SmartIr/components/GroupButtonByType/GroupButtonByType.js +4 -2
- package/src/screens/SmartIr/components/{SelectDeviceType.js → SelectIrDeviceType.js} +2 -2
- package/src/screens/SmartIr/index.js +1 -1
- package/src/screens/SubUnit/AddSubUnit.js +7 -3
- package/src/screens/SubUnit/Detail.js +6 -6
- package/src/screens/SubUnit/EditSubUnit.js +10 -6
- package/src/screens/SubUnit/ManageSubUnit.js +2 -2
- package/src/screens/SubUnit/__test__/AddSubUnit.test.js +6 -3
- package/src/screens/SubUnit/__test__/Detail.test.js +5 -3
- package/src/screens/SubUnit/__test__/EditSubUnit.test.js +9 -5
- package/src/screens/SubUnit/__test__/ManageSubUnit.test.js +3 -2
- package/src/screens/SyncLGDevice/AddLGDevice.js +4 -4
- package/src/screens/SyncLGDevice/__test__/AddLGDevice.test.js +7 -4
- package/src/screens/TDSGuide/__test__/TDSGuide.test.js +4 -2
- package/src/screens/TDSGuide/index.js +2 -2
- package/src/screens/Template/EditTemplate.js +152 -0
- package/src/screens/Template/GatewayList.js +51 -0
- package/src/screens/Template/Information.js +41 -0
- package/src/screens/Template/Styles/EditTemplateStyle.js +109 -0
- package/src/screens/Template/Styles/GatewayStyles.js +46 -0
- package/src/screens/Template/Styles/InformationStyles.js +16 -0
- package/src/screens/Template/Styles/detailStyles.js +35 -0
- package/src/screens/Template/Styles/indexStyles.js +2 -33
- package/src/screens/Template/__test__/EditTemplate.test.js +89 -0
- package/src/screens/Template/__test__/GatewayList.test.js +26 -0
- package/src/screens/Template/__test__/Information.test.js +16 -0
- package/src/screens/Template/__test__/detail.test.js +68 -0
- package/src/screens/Template/__test__/index.test.js +26 -1
- package/src/screens/Template/detail.js +154 -0
- package/src/screens/Template/index.js +38 -32
- package/src/screens/UVIndexGuide/__test__/UVIndexGuide.test.js +3 -2
- package/src/screens/UVIndexGuide/index.js +2 -2
- package/src/screens/Unit/AddMenu.js +6 -20
- package/src/screens/Unit/ChooseLocation.js +1 -1
- package/src/screens/Unit/Detail.js +14 -9
- package/src/screens/Unit/ManageUnit.js +21 -15
- package/src/screens/Unit/MyAllUnit/index.js +1 -1
- package/src/screens/Unit/SelectAddToFavorites.js +11 -2
- package/src/screens/Unit/SelectAddress.js +4 -4
- package/src/screens/Unit/SmartAccount.js +1 -1
- package/src/screens/Unit/SmartAccountItem.js +3 -3
- package/src/screens/Unit/Station/__test__/index.test.js +19 -3
- package/src/screens/Unit/Station/index.js +2 -2
- package/src/screens/Unit/Summaries.js +2 -2
- package/src/screens/Unit/__test__/CheckSendEmail.test.js +6 -6
- package/src/screens/Unit/__test__/Detail.test.js +90 -55
- package/src/screens/Unit/__test__/ManageUnit.test.js +40 -18
- package/src/screens/Unit/__test__/SelectAddress.test.js +15 -8
- package/src/screens/Unit/__test__/SmartAccount.test.js +42 -25
- package/src/screens/Unit/__test__/SmartAccountItem.test.js +4 -3
- package/src/screens/Unit/components/AutomateScript/index.js +8 -2
- package/src/screens/Unit/components/ListMyAllUnit/index.js +1 -1
- package/src/screens/Unit/components/MyAllUnit/__test__/Header.test.js +9 -5
- package/src/screens/Unit/components/MyAllUnit/index.js +1 -1
- package/src/screens/Unit/components/MyUnitDevice/index.js +8 -5
- package/src/screens/Unit/components/SharedUnit/index.js +12 -6
- package/src/screens/Unit/components/__test__/MyUnitDevice.test.js +2 -2
- package/src/screens/Unit/components/__test__/SharedUnit.test.js +24 -9
- package/src/screens/Unit/hook/useUnitConnectRemoteDevices.js +25 -11
- package/src/screens/UnitSummary/__test__/index.test.js +4 -2
- package/src/screens/UnitSummary/components/3PPowerConsumption/__test__/3PPowerConsumption.test.js +4 -2
- package/src/screens/UnitSummary/components/3PPowerConsumption/index.js +2 -2
- package/src/screens/UnitSummary/components/PowerConsumption/__test__/PowerConsumption.test.js +4 -2
- package/src/screens/UnitSummary/components/PowerConsumption/index.js +2 -2
- package/src/screens/UnitSummary/components/RunningDevices/__test__/index.test.js +5 -4
- package/src/screens/UnitSummary/components/RunningDevices/index.js +6 -3
- package/src/screens/UnitSummary/components/TotalPowerBox/index.js +2 -2
- package/src/screens/UnitSummary/components/TotalPowerConsumption/index.js +2 -2
- package/src/screens/UnitSummary/components/__test__/TotalPowerBox.test.js +3 -2
- package/src/screens/UnitSummary/components/__test__/TotalPowerConsumption.test.js +4 -2
- package/src/screens/UnitSummary/index.js +10 -8
- package/src/screens/WaterQualityGuide/__test__/index.test.js +17 -12
- package/src/screens/WaterQualityGuide/index.js +26 -10
- package/src/utils/Apis/axios.js +1 -0
- package/src/utils/I18n/translations/en.json +25 -10
- package/src/utils/I18n/translations/vi.json +22 -9
- package/src/utils/Route/index.js +22 -10
- package/src/commons/Connecting/index.js +0 -67
- package/src/commons/ConnectingProcess/DeviceItem/DeviceItem.js +0 -28
- package/src/commons/ConnectingProcess/DeviceItem/DeviceItemStyles.js +0 -41
- package/src/commons/ConnectingProcess/__test__/Connecting.test.js +0 -163
- package/src/commons/ConnectingProcess/__test__/DeviceItem.test.js +0 -19
- package/src/commons/ConnectingProcess/index.js +0 -213
- package/src/commons/ConnectingProcess/styles.js +0 -69
- package/src/hooks/IoT/useGGHomeConnection.js +0 -91
- package/src/iot/RemoteControl/index.js +0 -55
- package/src/screens/AddNewDevice/ConnectDevices.js +0 -184
- package/src/screens/AddNewDevice/__test__/ConnectDevices.test.js +0 -131
- package/src/screens/AddNewGateway/ConnectedGateway.js +0 -139
- package/src/screens/AddNewGateway/ConnectingGateway.js +0 -137
- package/src/screens/AddNewGateway/PlugAndPlay/ConnectWifiWarning.js +0 -214
- package/src/screens/AddNewGateway/PlugAndPlay/GatewayWifiList.js +0 -307
- package/src/screens/AddNewGateway/PlugAndPlay/__test__/ConnectWifiWarning.test.js +0 -75
- package/src/screens/AddNewGateway/PlugAndPlay/__test__/GatewayWifiList.test.js +0 -130
- package/src/screens/AddNewGateway/SelectGateway.js +0 -133
- package/src/screens/AddNewGateway/SetupGatewayWifi.js +0 -207
- package/src/screens/AddNewGateway/__test__/ConnectedGateway.test.js +0 -71
- package/src/screens/AddNewGateway/__test__/ConnectingGateway.test.js +0 -96
- package/src/screens/AddNewGateway/__test__/SetupGateway.test.js +0 -120
- package/src/screens/ScanChipQR/__test__/ScanChipQR.test.js +0 -115
- package/src/screens/ScanChipQR/hooks/index.js +0 -120
- package/src/screens/ScanChipQR/index.js +0 -29
- package/src/screens/ScanSensorQR/__test__/ScanSensorQR.test.js +0 -111
- package/src/screens/ScanSensorQR/hooks/index.js +0 -40
- package/src/screens/ScanSensorQR/index.js +0 -39
package/src/commons/ActionGroup/SmartTiviActionTemplate/__test__/SmartTiviActionTemplate.test.js
CHANGED
|
@@ -4,7 +4,7 @@ import SmartTiviActionTemplate from '../SmartTiviActionTemplate';
|
|
|
4
4
|
import { SCProvider } from '../../../../context';
|
|
5
5
|
import { mockSCStore } from '../../../../context/mockStore';
|
|
6
6
|
import { ScrollView } from 'react-native';
|
|
7
|
-
import {
|
|
7
|
+
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
9
|
const wrapComponent = (actionGroup, doAction) => (
|
|
10
10
|
<SCProvider initState={mockSCStore({})}>
|
|
@@ -28,7 +28,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
28
28
|
});
|
|
29
29
|
const instance = wrapper.root;
|
|
30
30
|
const circleButtonOnOff = instance.find(
|
|
31
|
-
(el) =>
|
|
31
|
+
(el) =>
|
|
32
|
+
el.props.accessibilityLabel ===
|
|
33
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.ONOFF_BUTTON
|
|
32
34
|
);
|
|
33
35
|
expect(circleButtonOnOff).toBeDefined();
|
|
34
36
|
await act(() => {
|
|
@@ -36,7 +38,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
36
38
|
});
|
|
37
39
|
|
|
38
40
|
const circleButtonExit = instance.find(
|
|
39
|
-
(el) =>
|
|
41
|
+
(el) =>
|
|
42
|
+
el.props.accessibilityLabel ===
|
|
43
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.EXIT_BUTTON
|
|
40
44
|
);
|
|
41
45
|
expect(circleButtonExit).toBeDefined();
|
|
42
46
|
// expect(circleButton).toHaveLength(2);
|
|
@@ -51,7 +55,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
51
55
|
});
|
|
52
56
|
const instance = wrapper.root;
|
|
53
57
|
const RectangleButtonVolume = instance.find(
|
|
54
|
-
(el) =>
|
|
58
|
+
(el) =>
|
|
59
|
+
el.props.accessibilityLabel ===
|
|
60
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.VOLUME_BUTTON
|
|
55
61
|
);
|
|
56
62
|
expect(RectangleButtonVolume).toBeDefined();
|
|
57
63
|
await act(() => {
|
|
@@ -61,7 +67,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
61
67
|
RectangleButtonVolume.props.onPressDown();
|
|
62
68
|
});
|
|
63
69
|
const RectangleButtonCH = instance.find(
|
|
64
|
-
(el) =>
|
|
70
|
+
(el) =>
|
|
71
|
+
el.props.accessibilityLabel ===
|
|
72
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.CH_BUTTON
|
|
65
73
|
);
|
|
66
74
|
expect(RectangleButtonCH).toBeDefined();
|
|
67
75
|
await act(() => {
|
|
@@ -77,7 +85,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
77
85
|
});
|
|
78
86
|
const instance = wrapper.root;
|
|
79
87
|
const CircleButtonBig = instance.find(
|
|
80
|
-
(el) =>
|
|
88
|
+
(el) =>
|
|
89
|
+
el.props.accessibilityLabel ===
|
|
90
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.BIG_BUTTON
|
|
81
91
|
);
|
|
82
92
|
expect(CircleButtonBig).toBeDefined();
|
|
83
93
|
await act(() => {
|
|
@@ -102,7 +112,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
102
112
|
});
|
|
103
113
|
const instance = wrapper.root;
|
|
104
114
|
const ControlPlay = instance.find(
|
|
105
|
-
(el) =>
|
|
115
|
+
(el) =>
|
|
116
|
+
el.props.accessibilityLabel ===
|
|
117
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.CONTROL_BUTTON
|
|
106
118
|
);
|
|
107
119
|
expect(ControlPlay).toBeDefined();
|
|
108
120
|
await act(() => {
|
|
@@ -121,7 +133,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
121
133
|
});
|
|
122
134
|
const instance = wrapper.root;
|
|
123
135
|
const controlHome = instance.find(
|
|
124
|
-
(el) =>
|
|
136
|
+
(el) =>
|
|
137
|
+
el.props.accessibilityLabel ===
|
|
138
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.HOME_BUTTON
|
|
125
139
|
);
|
|
126
140
|
expect(controlHome).toBeDefined();
|
|
127
141
|
await act(() => {
|
|
@@ -134,7 +148,9 @@ describe('Test SmartTiviActionTemplate', () => {
|
|
|
134
148
|
});
|
|
135
149
|
const instance = wrapper.root;
|
|
136
150
|
const controlBack = instance.find(
|
|
137
|
-
(el) =>
|
|
151
|
+
(el) =>
|
|
152
|
+
el.props.accessibilityLabel ===
|
|
153
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.BACK_BUTTON
|
|
138
154
|
);
|
|
139
155
|
expect(controlBack).toBeDefined();
|
|
140
156
|
await act(() => {
|
|
@@ -4,7 +4,7 @@ import styles from './CircleButtonStyles';
|
|
|
4
4
|
import Text from '../../../Text';
|
|
5
5
|
import { Colors, Images } from '../../../../configs';
|
|
6
6
|
import { IconOutline } from '@ant-design/icons-react-native';
|
|
7
|
-
import {
|
|
7
|
+
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
9
|
const CircleButton = memo(
|
|
10
10
|
({
|
|
@@ -42,7 +42,9 @@ const CircleButton = memo(
|
|
|
42
42
|
<TouchableOpacity
|
|
43
43
|
style={[styles.upButton, styles.padding16]}
|
|
44
44
|
onPress={onPressUp}
|
|
45
|
-
|
|
45
|
+
accessibilityLabel={
|
|
46
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.UP_BUTTON
|
|
47
|
+
}
|
|
46
48
|
>
|
|
47
49
|
<IconOutline size={14} name={'caret-up'} />
|
|
48
50
|
</TouchableOpacity>
|
|
@@ -51,14 +53,18 @@ const CircleButton = memo(
|
|
|
51
53
|
<TouchableOpacity
|
|
52
54
|
style={[styles.leftButton, styles.padding16]}
|
|
53
55
|
onPress={onPressLeft}
|
|
54
|
-
|
|
56
|
+
accessibilityLabel={
|
|
57
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.LEFT_BUTTON
|
|
58
|
+
}
|
|
55
59
|
>
|
|
56
60
|
<IconOutline size={14} name={'caret-left'} />
|
|
57
61
|
</TouchableOpacity>
|
|
58
62
|
<TouchableOpacity
|
|
59
63
|
style={[styles.okButton]}
|
|
60
64
|
onPress={onPressOk}
|
|
61
|
-
|
|
65
|
+
accessibilityLabel={
|
|
66
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.OK_BUTTON
|
|
67
|
+
}
|
|
62
68
|
>
|
|
63
69
|
<Text type="H4" color={Colors.Gray9} bold>
|
|
64
70
|
OK
|
|
@@ -67,7 +73,9 @@ const CircleButton = memo(
|
|
|
67
73
|
<TouchableOpacity
|
|
68
74
|
style={[styles.rightButton, styles.padding16]}
|
|
69
75
|
onPress={onPressRight}
|
|
70
|
-
|
|
76
|
+
accessibilityLabel={
|
|
77
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.RIGHT_BUTTON
|
|
78
|
+
}
|
|
71
79
|
>
|
|
72
80
|
<IconOutline size={14} name={'caret-right'} />
|
|
73
81
|
</TouchableOpacity>
|
|
@@ -76,7 +84,9 @@ const CircleButton = memo(
|
|
|
76
84
|
<TouchableOpacity
|
|
77
85
|
style={[styles.downButton, styles.padding16]}
|
|
78
86
|
onPress={onPressDown}
|
|
79
|
-
|
|
87
|
+
accessibilityLabel={
|
|
88
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.DOWN_BUTTON
|
|
89
|
+
}
|
|
80
90
|
>
|
|
81
91
|
<IconOutline size={14} name={'caret-down'} />
|
|
82
92
|
</TouchableOpacity>
|
|
@@ -4,7 +4,7 @@ import { Colors } from '../../../../configs';
|
|
|
4
4
|
|
|
5
5
|
import styles from './ControlPlayStyles';
|
|
6
6
|
import { Pause } from './Icon';
|
|
7
|
-
import {
|
|
7
|
+
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
9
|
import { IconOutline } from '@ant-design/icons-react-native';
|
|
10
10
|
|
|
@@ -15,7 +15,9 @@ const ControlPlay = memo(
|
|
|
15
15
|
<TouchableOpacity
|
|
16
16
|
style={[styles.controlButton, styles.controlPrev]}
|
|
17
17
|
onPress={onPressPrev}
|
|
18
|
-
|
|
18
|
+
accessibilityLabel={
|
|
19
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.PREV_BUTTON
|
|
20
|
+
}
|
|
19
21
|
>
|
|
20
22
|
<IconOutline
|
|
21
23
|
size={32}
|
|
@@ -27,14 +29,18 @@ const ControlPlay = memo(
|
|
|
27
29
|
<TouchableOpacity
|
|
28
30
|
style={[styles.controlButton, styles.controlStop]}
|
|
29
31
|
onPress={onPressStop}
|
|
30
|
-
|
|
32
|
+
accessibilityLabel={
|
|
33
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.STOP_BUTTON
|
|
34
|
+
}
|
|
31
35
|
>
|
|
32
36
|
<Pause size={48} />
|
|
33
37
|
</TouchableOpacity>
|
|
34
38
|
<TouchableOpacity
|
|
35
39
|
style={[styles.controlButton, styles.controlNext]}
|
|
36
40
|
onPress={onPressNext}
|
|
37
|
-
|
|
41
|
+
accessibilityLabel={
|
|
42
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.NEXT_BUTTON
|
|
43
|
+
}
|
|
38
44
|
>
|
|
39
45
|
<IconOutline
|
|
40
46
|
size={32}
|
|
@@ -3,7 +3,7 @@ import { TouchableOpacity, View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import styles from './RectangleButtonStyles';
|
|
5
5
|
import { KeyboardArrowUp, KeyboardArrowDown } from './Icon';
|
|
6
|
-
import {
|
|
6
|
+
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
7
7
|
|
|
8
8
|
const RectangleButton = memo(
|
|
9
9
|
({ icon, onPressUp, onPressDown, wrapStyle, type, onPress }) => {
|
|
@@ -22,7 +22,9 @@ const RectangleButton = memo(
|
|
|
22
22
|
<TouchableOpacity
|
|
23
23
|
style={[styles.rectangleColumn]}
|
|
24
24
|
onPress={onPressUp}
|
|
25
|
-
|
|
25
|
+
accessibilityLabel={
|
|
26
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.CH_VOLUME_UP_BUTTON
|
|
27
|
+
}
|
|
26
28
|
>
|
|
27
29
|
<KeyboardArrowUp size={24} name={'up'} style={styles.padding8} />
|
|
28
30
|
</TouchableOpacity>
|
|
@@ -30,7 +32,9 @@ const RectangleButton = memo(
|
|
|
30
32
|
<TouchableOpacity
|
|
31
33
|
style={[styles.rectangleColumn]}
|
|
32
34
|
onPress={onPressDown}
|
|
33
|
-
|
|
35
|
+
accessibilityLabel={
|
|
36
|
+
AccessibilityLabel.SMART_TIVI_TEMPLATE.CH_VOLUME_DOWN_BUTTON
|
|
37
|
+
}
|
|
34
38
|
>
|
|
35
39
|
<KeyboardArrowDown
|
|
36
40
|
size={24}
|
|
@@ -8,7 +8,7 @@ import { useUnwatchLGDeviceConfigControl } from '../../hooks/IoT';
|
|
|
8
8
|
import { watchMultiConfigs } from '../../iot/Monitor';
|
|
9
9
|
import IconComponent from '../IconComponent';
|
|
10
10
|
import styles from './StatesGridActionTemplateStyle';
|
|
11
|
-
import { DEVICE_TYPE,
|
|
11
|
+
import { DEVICE_TYPE, AccessibilityLabel } from '../../configs/Constants';
|
|
12
12
|
import SvgClean from '../../../assets/images/Device/clean.svg';
|
|
13
13
|
import SvgCirculator from '../../../assets/images/Device/circulator.svg';
|
|
14
14
|
import SvgAuo from '../../../assets/images/Device/auto.svg';
|
|
@@ -72,7 +72,7 @@ const GridItem = ({ item, index, length, doAction, sensor, title }) => {
|
|
|
72
72
|
return (
|
|
73
73
|
<View
|
|
74
74
|
style={[styles.gridItem]}
|
|
75
|
-
|
|
75
|
+
accessibilityLabel={AccessibilityLabel.STATES_GRID_ACTION_GRID_ITEM}
|
|
76
76
|
>
|
|
77
77
|
<TouchableOpacity
|
|
78
78
|
style={[styles.button, buttonOnOffStyle]}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import React, { memo, useCallback, useState } from 'react';
|
|
2
2
|
import { TouchableOpacity, View, Switch } from 'react-native';
|
|
3
3
|
import { Icon } from '@ant-design/react-native';
|
|
4
|
-
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
5
4
|
import styles from './ThreeButtonTemplateStyle';
|
|
6
5
|
import Text from '../Text';
|
|
7
|
-
import {
|
|
6
|
+
import { AccessibilityLabel } from '../../configs/Constants';
|
|
8
7
|
import { Colors } from '../../configs';
|
|
9
|
-
import { Card } from '../../commons/CardShadow';
|
|
10
8
|
|
|
11
|
-
const ThreeButtonTemplate = memo(({ actionGroup, doAction
|
|
12
|
-
const t = useTranslations();
|
|
9
|
+
const ThreeButtonTemplate = memo(({ actionGroup, doAction }) => {
|
|
13
10
|
const { configuration } = actionGroup;
|
|
14
11
|
const {
|
|
15
12
|
text1,
|
|
@@ -20,7 +17,12 @@ const ThreeButtonTemplate = memo(({ actionGroup, doAction, sensor }) => {
|
|
|
20
17
|
action3_data,
|
|
21
18
|
action_off_data,
|
|
22
19
|
action_on_data,
|
|
23
|
-
|
|
20
|
+
icon1,
|
|
21
|
+
icon2,
|
|
22
|
+
icon3,
|
|
23
|
+
text_door_lock,
|
|
24
|
+
is_display_lock,
|
|
25
|
+
} = configuration || {};
|
|
24
26
|
const [lock, setLock] = useState(false);
|
|
25
27
|
const iconCustom = (icon) => {
|
|
26
28
|
return icon === 'stop' ? (
|
|
@@ -58,9 +60,9 @@ const ThreeButtonTemplate = memo(({ actionGroup, doAction, sensor }) => {
|
|
|
58
60
|
<Icon name={icon} size={15} color={color} style={styles.iconLock} />
|
|
59
61
|
<Text
|
|
60
62
|
style={styles.textLockDoor}
|
|
61
|
-
|
|
63
|
+
accessibilityLabel={AccessibilityLabel.TEXT_DOOR_LOOK_ON_OFF}
|
|
62
64
|
>
|
|
63
|
-
{
|
|
65
|
+
{`${text_door_lock} `}
|
|
64
66
|
</Text>
|
|
65
67
|
</View>
|
|
66
68
|
<Switch
|
|
@@ -75,60 +77,48 @@ const ThreeButtonTemplate = memo(({ actionGroup, doAction, sensor }) => {
|
|
|
75
77
|
};
|
|
76
78
|
return (
|
|
77
79
|
<>
|
|
78
|
-
<
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
>
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
color={Colors.Primary}
|
|
91
|
-
/>
|
|
92
|
-
</View>
|
|
93
|
-
<Text style={styles.text}>{text1}</Text>
|
|
94
|
-
</TouchableOpacity>
|
|
80
|
+
<View style={styles.wrap}>
|
|
81
|
+
<TouchableOpacity
|
|
82
|
+
accessibilityLabel={AccessibilityLabel.BUTTON_TEMPLATE_1}
|
|
83
|
+
style={styles.buttonActionDoor}
|
|
84
|
+
onPress={onButton1Press}
|
|
85
|
+
underlayColor={Colors.Gray2}
|
|
86
|
+
>
|
|
87
|
+
<View style={styles.imageButton}>
|
|
88
|
+
<Icon name={icon1} size={30} color={Colors.Primary} />
|
|
89
|
+
</View>
|
|
90
|
+
<Text style={styles.text}>{text1}</Text>
|
|
91
|
+
</TouchableOpacity>
|
|
95
92
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<Text style={styles.text}>{text2}</Text>
|
|
106
|
-
</TouchableOpacity>
|
|
93
|
+
<TouchableOpacity
|
|
94
|
+
accessibilityLabel={AccessibilityLabel.BUTTON_TEMPLATE_2}
|
|
95
|
+
style={styles.buttonActionDoor}
|
|
96
|
+
onPress={onButton2Press}
|
|
97
|
+
underlayColor={Colors.Gray2}
|
|
98
|
+
>
|
|
99
|
+
<View style={styles.imageButton}>{iconCustom(icon2)}</View>
|
|
100
|
+
<Text style={styles.text}>{text2}</Text>
|
|
101
|
+
</TouchableOpacity>
|
|
107
102
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
lock ? 'lock' : 'unlock',
|
|
128
|
-
lock ? Colors.Primary : Colors.Gray6
|
|
129
|
-
)}
|
|
130
|
-
</View>
|
|
131
|
-
</Card>
|
|
103
|
+
<TouchableOpacity
|
|
104
|
+
accessibilityLabel={AccessibilityLabel.BUTTON_TEMPLATE_3}
|
|
105
|
+
style={styles.buttonActionDoor}
|
|
106
|
+
onPress={onButton3Press}
|
|
107
|
+
underlayColor={Colors.Gray2}
|
|
108
|
+
>
|
|
109
|
+
<View style={styles.imageButton}>
|
|
110
|
+
<Icon name={icon3} size={30} color={Colors.Primary} />
|
|
111
|
+
</View>
|
|
112
|
+
<Text style={styles.text}>{text3}</Text>
|
|
113
|
+
</TouchableOpacity>
|
|
114
|
+
</View>
|
|
115
|
+
<View style={styles.lockSwitch}>
|
|
116
|
+
{is_display_lock &&
|
|
117
|
+
itemLock(
|
|
118
|
+
lock ? 'lock' : 'unlock',
|
|
119
|
+
lock ? Colors.Primary : Colors.Gray6
|
|
120
|
+
)}
|
|
121
|
+
</View>
|
|
132
122
|
</>
|
|
133
123
|
);
|
|
134
124
|
});
|