@eohjsc/react-native-smart-city 0.6.2 → 0.7.0
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/README.md +1 -1
- package/android/build.gradle +7 -10
- package/package.json +53 -70
- package/src/commons/Action/__test__/ItemQuickAction.test.js +2 -2
- package/src/commons/ActionGroup/NumberUpDownActionTemplate.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/AutoLock/ButtonWrapper.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/__test__/ItemPasscode.test.js +2 -2
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/__test__/index.test.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/PasscodeList/index.js +3 -3
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/ButtonWrapper.js +2 -2
- package/src/commons/ActionGroup/OnOffSmartLock/SetupGeneratePasscode/__test__/index.test.js +0 -15
- package/src/commons/ActionGroup/OnOffTemplate/OnOffSimpleTemplate.js +2 -2
- package/src/commons/ActionGroup/OptionsDropdownActionTemplate.js +2 -2
- package/src/commons/ActionGroup/SmartTiviActionTemplate/SmartTiviActionTemplate.js +2 -2
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/CircleButton.js +5 -5
- package/src/commons/ActionGroup/SmartTiviActionTemplate/component/ControlPlay.js +5 -5
- package/src/commons/ActionGroup/TerminalBoxTemplate.js +2 -2
- package/src/commons/ActionGroup/TextBoxTemplate.js +2 -2
- package/src/commons/ActionGroup/ThreeButtonTemplate/__test__/ThreeButtonTemplate.test.js +4 -4
- package/src/commons/ActionGroup/TimerActionTemplate.js +4 -5
- package/src/commons/ActionGroup/TwoButtonTemplate/index.js +2 -2
- package/src/commons/ActionGroup/__test__/ColorPickerTemplate.test.js +4 -9
- package/src/commons/ActionGroup/__test__/NumberUpDownTemplate.test.js +2 -9
- package/src/commons/ActionGroup/__test__/OnOffButtonTemplate.test.js +4 -11
- package/src/commons/ActionGroup/__test__/OnOffSmartLock.test.js +2 -9
- package/src/commons/ActionGroup/__test__/OnOffTemplate.test.js +4 -18
- package/src/commons/ActionGroup/__test__/OneBigButtonTemplate.test.js +2 -2
- package/src/commons/ActionGroup/__test__/OptionsDropdownTemplate.test.js +1 -8
- package/src/commons/ActionGroup/__test__/StatesGridActionTemplate.test.js +0 -7
- package/src/commons/ActionGroup/__test__/SwitchButtonTemplate.test.js +4 -15
- package/src/commons/ActionGroup/__test__/TerminalBoxTemplate.test.js +0 -7
- package/src/commons/ActionGroup/__test__/TextBoxTemplate.test.js +1 -8
- package/src/commons/ActionGroup/__test__/TimerActionTemplate.test.js +8 -15
- package/src/commons/ActionGroup/__test__/TimerActionTemplateWithutConfigValue.test.js +2 -10
- package/src/commons/ActionGroup/__test__/TwoButtonTemplate.test.js +3 -20
- package/src/commons/ActionGroup/__test__/index.test.js +15 -23
- package/src/commons/ActionTemplate/__test__/index.test.js +2 -0
- package/src/commons/ActionTemplate/__test__/utils.js +21 -0
- package/src/commons/ActionTemplate/index.js +1 -2
- package/src/commons/BackDefault/index.js +2 -2
- package/src/commons/ButtonPopup/index.js +2 -2
- package/src/commons/Calendar/__test__/Calendar.test.js +0 -7
- package/src/commons/CircleButton/__test__/CircleButton.test.js +2 -2
- package/src/commons/Dashboard/MyPinnedSharedUnit/__test__/MyPinnedSharedUnit.test.js +11 -25
- package/src/commons/Dashboard/MyUnit/__test__/MyUnit.test.js +27 -20
- package/src/commons/Dashboard/MyUnit/index.js +0 -1
- package/src/commons/DateTimeRangeChange/DateTimeButton.js +2 -2
- package/src/commons/DateTimeRangeChange/__test__/DateTimeButton.test.js +4 -4
- package/src/commons/DateTimeRangeChange/index.js +2 -2
- package/src/commons/Device/ConnectedViewHeader.js +2 -2
- package/src/commons/Device/DisconnectedView.js +2 -2
- package/src/commons/Device/Emergency/EmergencyDetail.js +3 -3
- package/src/commons/Device/Emergency/__test__/EmergencyDetail.test.js +2 -2
- package/src/commons/Device/FlatListItems.js +3 -3
- package/src/commons/Device/Hanet/ItemHanetDevice.js +3 -3
- package/src/commons/Device/Hanet/ItemHanetDevice.test.js +3 -11
- package/src/commons/Device/ItemAddNew/index.js +2 -2
- package/src/commons/Device/ItemDevice.js +2 -2
- package/src/commons/Device/SonosSpeaker/index.js +3 -3
- package/src/commons/Device/WaterPurifierStatus/AlertStatusMachine.js +2 -2
- package/src/commons/Device/WaterQualitySensor/QualityIndicatorsItem.js +2 -6
- package/src/commons/DisplayChecking/index.js +2 -2
- package/src/commons/EmergencyButton/AlertSendConfirm.js +2 -2
- package/src/commons/EmergencyButton/AlertSent.js +6 -2
- package/src/commons/FieldTemplate/ChooseUserField/index.js +2 -2
- package/src/commons/FieldTemplate/PasscodeField/__test__/index.test.js +5 -5
- package/src/commons/FieldTemplate/ScheduleField/__test__/index.test.js +9 -9
- package/src/commons/Form/CurrencyInput.js +1 -15
- package/src/commons/GroupCheckBox/__test__/GroupCheckBox.test.js +1 -22
- package/src/commons/Header/HeaderCustom.js +8 -3
- package/src/commons/HeaderAni/index.js +2 -2
- package/src/commons/IconComponent/index.js +3 -3
- package/src/commons/MediaPlayerDetail/MediaPlayerFull.js +1 -1
- package/src/commons/MediaPlayerDetail/__test__/MediaPlayerFull.test.js +12 -48
- package/src/commons/MenuActionAddnew/__test__/MenuActionAddNew.test.js +1 -1
- package/src/commons/MenuActionList/__test__/MenuActionList.test.js +1 -0
- package/src/commons/NavBar/index.js +2 -2
- package/src/commons/OneTapTemplate/NumberUpDownActionTemplate.js +3 -3
- package/src/commons/PreventAccess/__test__/PreventAccess.test.js +1 -13
- package/src/commons/Processing/__test__/Connecting.test.js +3 -14
- package/src/commons/SearchLocation/index.js +3 -3
- package/src/commons/SelectActionCard/index.js +2 -2
- package/src/commons/SelectSubUnit/__test__/SelectSubUnit.test.js +1 -18
- package/src/commons/SelectSubUnit/index.js +2 -2
- package/src/commons/SelectUnit/__test__/SelectUnit.test.js +1 -13
- package/src/commons/Sharing/BtnRemoveMember.js +2 -2
- package/src/commons/Sharing/StationDevicePermissions.js +2 -2
- package/src/commons/Sharing/WrapHeaderScrollable.js +1 -1
- package/src/commons/Sharing/__test__/ButtonRemoveMember.test.js +2 -2
- package/src/commons/Sharing/__test__/DevicePermissionsCheckbox.test.js +1 -1
- package/src/commons/SubUnit/DeviceTemplate/ConfigAndEvaluation/ConfigAndEvaluation.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/ConfigValue/ConfigValue.js +2 -2
- package/src/commons/SubUnit/DeviceTemplate/EvaluationOverConfig/EvaluationOverConfig.js +2 -2
- package/src/commons/SubUnit/Item/index.js +3 -3
- package/src/commons/SubUnit/OneTap/ItemOneTap.js +2 -2
- package/src/commons/SubUnit/OneTap/__test__/SubUnitAutomate.test.js +11 -8
- package/src/commons/SubUnit/__test__/Favorites.test.js +1 -13
- package/src/commons/SubUnit/__test__/ShortDetail.test.js +5 -16
- package/src/commons/SummaryItem/index.js +22 -23
- package/src/commons/Tabbar/__test__/index.test.js +0 -11
- package/src/commons/Unit/HeaderUnit/index.js +84 -84
- package/src/commons/Unit/SharedUnit.js +7 -7
- package/src/commons/Unit/__test__/HeaderUnit.test.js +29 -52
- package/src/commons/Unit/__test__/SharedUnit.test.js +94 -105
- package/src/commons/UnitSummary/AirQuality/SegmentedRoundDisplay/index.js +11 -30
- package/src/commons/WrapParallaxScrollView/index.js +21 -50
- package/src/configs/API.js +1 -2
- package/src/hooks/Common/__test__/useAndroidTranslucentStatusBar.test.js +4 -15
- package/src/hooks/Common/useIsOwnerOfUnit.js +1 -1
- package/src/hooks/IoT/__test__/useRemoteControl.test.js +1 -1
- package/src/hooks/IoT/__test__/useWatchConfigs.test.js +6 -21
- package/src/iot/RemoteControl/HomeAssistant.js +1 -1
- package/src/iot/RemoteControl/__test__/Bluetooth.test.js +234 -232
- package/src/navigations/AutomateStack.js +2 -2
- package/src/navigations/EmergencyContactsStack.js +2 -2
- package/src/navigations/SharedStack.js +6 -4
- package/src/navigations/UnitStack.js +2 -10
- package/src/screens/ActivityLog/hooks/index.js +7 -4
- package/src/screens/ActivityLog/index.js +2 -2
- package/src/screens/AddCommon/__test__/SelectSubUnit.test.js +4 -21
- package/src/screens/AddCommon/__test__/SelectUnit.test.js +7 -19
- package/src/screens/AddLocationMaps/__test__/index.test.js +3 -13
- package/src/screens/AddLocationMaps/index.js +11 -6
- package/src/screens/AddNewDevice/__test__/AddNewDevice.test.js +3 -20
- package/src/screens/AddNewGateway/PlugAndPlay/__test__/FirstWarning.test.js +11 -18
- package/src/screens/AddNewGateway/PlugAndPlay/__test__/ZigbeeDeviceConnectGuide.test.js +4 -21
- package/src/screens/AddNewGateway/RenameNewDevices.js +2 -2
- package/src/screens/AddNewGateway/__test__/AddNewGateway.test.js +3 -3
- package/src/screens/AddNewGateway/__test__/ConnectingModbusDevice.test.js +0 -17
- package/src/screens/AddNewGateway/__test__/ConnectingWifiDevice.test.js +4 -19
- package/src/screens/AddNewGateway/__test__/ConnectingWifiGuide.test.js +3 -15
- package/src/screens/AddNewGateway/__test__/ConnectingZigbeeDevice.test.js +31 -51
- package/src/screens/AddNewGateway/__test__/RenameNewDevices.test.js +9 -22
- package/src/screens/AddNewGateway/__test__/ScanGatewayQR.test.js +12 -19
- package/src/screens/AddNewGateway/__test__/ScanModbusQR.test.js +6 -16
- package/src/screens/AddNewGateway/__test__/ScanWifiDeviceQR.test.js +4 -15
- package/src/screens/AddNewGateway/__test__/SelectDeviceSubUnit.test.js +3 -3
- package/src/screens/AddNewGateway/__test__/SelectDeviceType.test.js +18 -10
- package/src/screens/AddNewGateway/__test__/SelectDeviceUnit.test.js +1 -1
- package/src/screens/AddNewGateway/__test__/SelectModbusGateway.test.js +12 -9
- package/src/screens/AddNewGateway/__test__/SelectZigbeeGateway.test.js +12 -9
- package/src/screens/AddNewGateway/__test__/ShareWifiPassword.test.js +7 -21
- package/src/screens/AllGateway/DetailConfigActionInternal/__test__/index.test.js +0 -20
- package/src/screens/AllGateway/DetailConfigActionModbus/__test__/index.test.js +7 -24
- package/src/screens/AllGateway/DeviceGatewayInfo/__test__/index.test.js +0 -17
- package/src/screens/AllGateway/DeviceInternalDetail/__test__/index.test.js +84 -100
- package/src/screens/AllGateway/DeviceModbusDetail/__test__/index.test.js +64 -82
- package/src/screens/AllGateway/DeviceZigbeeDetail/__test__/index.test.js +36 -55
- package/src/screens/AllGateway/GatewayConnectionMethods/__test__/index.test.js +9 -18
- package/src/screens/AllGateway/GatewayDetail/__test__/index.test.js +10 -37
- package/src/screens/AllGateway/GatewayInfo/__test__/index.test.js +7 -32
- package/src/screens/AllGateway/__test__/index.test.js +1 -14
- package/src/screens/AllGateway/components/GatewayItem/__test__/index.test.js +0 -12
- package/src/screens/AllGateway/components/TabPaneCT/__test__/index.test.js +1 -13
- package/src/screens/AllGateway/components/TabPaneCT/index.js +1 -1
- package/src/screens/AllGateway/hooks/__test__/index.test.js +1 -8
- package/src/screens/AllGateway/test-utils.js +1 -1
- package/src/screens/Automate/AddNewAction/NewActionWrapper.js +2 -2
- package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +27 -28
- package/src/screens/Automate/AddNewAction/__test__/ChooseAction.test.js +3 -3
- package/src/screens/Automate/AddNewAction/__test__/ChooseConfig.test.js +8 -5
- package/src/screens/Automate/AddNewAction/__test__/SelectControlDevices.test.js +2 -2
- package/src/screens/Automate/AddNewAction/__test__/SelectMonitorDevices.test.js +1 -18
- package/src/screens/Automate/AddNewAction/__test__/SetupConfigCondition.test.js +17 -15
- package/src/screens/Automate/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +4 -4
- package/src/screens/Automate/EditActionsList/__tests__/UpdateActionScript.test.js +38 -55
- package/src/screens/Automate/EditActionsList/__tests__/UpdateDelayScript.test.js +0 -18
- package/src/screens/Automate/EditActionsList/__tests__/UpdateNotifyScript.test.js +1 -19
- package/src/screens/Automate/EditActionsList/__tests__/index.test.js +14 -11
- package/src/screens/Automate/OneTap/__test__/AddNewOneTap.test.js +3 -3
- package/src/screens/Automate/Scenario/__test__/AddNewOneTap.test.js +2 -2
- package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +2 -2
- package/src/screens/Automate/ScriptDetail/__test__/index.test.js +33 -25
- package/src/screens/Automate/ScriptDetail/index.js +6 -6
- package/src/screens/Automate/SetSchedule/__test__/index.test.js +4 -4
- package/src/screens/Automate/SetSchedule/components/RowItem.js +3 -3
- package/src/screens/Automate/__test__/MultiUnits.test.js +7 -7
- package/src/screens/Automate/__test__/index.test.js +6 -6
- package/src/screens/Automate/index.js +2 -2
- package/src/screens/ChangePosition/__test__/index.test.js +1 -14
- package/src/screens/ConfirmUnitDeletion/__test__/ConfirmUnitDeletion.test.js +1 -23
- package/src/screens/Device/EditDevice/__test__/EditDevice.test.js +1 -11
- package/src/screens/Device/EditDevice/index.js +2 -2
- package/src/screens/Device/__test__/detail.test.js +11 -11
- package/src/screens/Device/__test__/sensorDisplayItem.test.js +0 -12
- package/src/screens/Device/detail.js +14 -12
- package/src/screens/Drawer/Drawer.test.js +3 -11
- package/src/screens/Drawer/index.js +3 -4
- package/src/screens/EmergencyContacts/EmergencyContactsList.js +4 -8
- package/src/screens/EmergencyContacts/EmergencyContactsSelectContacts.js +3 -3
- package/src/screens/EmergencyContacts/__test__/EmergencyContactAddNew.test.js +4 -17
- package/src/screens/EmergencyContacts/__test__/EmergencyContactList.test.js +3 -14
- package/src/screens/EmergencyContacts/__test__/EmergencyContactsSelectContacts.test.js +0 -10
- package/src/screens/EmergencySetting/components/DropDownItem.js +2 -2
- package/src/screens/EnterPassword/__test__/EnterPassword.test.js +4 -17
- package/src/screens/GuestInfo/__test__/index.test.js +0 -11
- package/src/screens/GuestInfo/components/RowGuestInfo.js +2 -2
- package/src/screens/GuestInfo/index.js +2 -2
- package/src/screens/HanetCamera/Detail.js +6 -2
- package/src/screens/HanetCamera/ManageAccess.js +3 -4
- package/src/screens/HanetCamera/MemberInfo.js +4 -4
- package/src/screens/HanetCamera/__test__/CaptureFaceID.test.js +2 -16
- package/src/screens/HanetCamera/__test__/Detail.test.js +1 -12
- package/src/screens/HanetCamera/__test__/ManageAccess.test.js +5 -16
- package/src/screens/HanetCamera/__test__/MemberInfo.test.js +5 -18
- package/src/screens/HanetCamera/components/RequestFaceIDPopup.js +2 -2
- package/src/screens/ManageAccess/__test__/ManageAccess.test.js +3 -19
- package/src/screens/ManageAccess/index.js +3 -3
- package/src/screens/MoveToAnotherSubUnit/__test__/index.test.js +7 -7
- package/src/screens/Notification/__test__/Notification.test.js +5 -15
- package/src/screens/Notification/__test__/NotificationItem.test.js +9 -19
- package/src/screens/Notification/index.js +5 -5
- package/src/screens/PlayBackCamera/__test__/index.test.js +13 -22
- package/src/screens/PlayBackCamera/index.js +2 -2
- package/src/screens/ScanChipQR/components/QRScan/__test__/QRScan.test.js +0 -11
- package/src/screens/ScanChipQR/components/QRScan/index.js +3 -3
- package/src/screens/SelectUnit/__test__/index.test.js +9 -29
- package/src/screens/SelectUnit/index.js +2 -2
- package/src/screens/SharedUnit/TabHeader.js +2 -2
- package/src/screens/Sharing/Components/EndDevice.js +3 -3
- package/src/screens/Sharing/SelectUser.js +5 -4
- package/src/screens/Sharing/UnitMemberList.js +7 -6
- package/src/screens/Sharing/__test__/InfoMemberUnit.test.js +9 -4
- package/src/screens/Sharing/__test__/SelectShareDevice.test.js +2 -15
- package/src/screens/Sharing/__test__/SelectUser.test.js +2 -22
- package/src/screens/Sharing/__test__/UnitMemberList.test.js +2 -2
- package/src/screens/Sharing/__test__/UpdateShareDevice.test.js +4 -17
- package/src/screens/Sharing/hooks/__test__/index.test.js +2 -13
- package/src/screens/SmartAccount/Connecting/index.js +0 -2
- package/src/screens/SmartAccount/ListDevice/__test__/ListDevice.test.js +3 -18
- package/src/screens/SmartAccount/SuccessfullyConnected/__test__/SuccessfullyConnected.test.js +11 -21
- package/src/screens/SmartAccount/SuccessfullyConnected/index.js +3 -4
- package/src/screens/SmartAccount/__test__/Connecting.test.js +30 -36
- package/src/screens/SmartAccount/__test__/SmartAccount.test.js +12 -21
- package/src/screens/SmartIr/__test__/GroupButtonByType.test.js +8 -17
- package/src/screens/SmartIr/__test__/SelectBrand.test.js +1 -11
- package/src/screens/SmartIr/__test__/SelectDeviceType.test.js +1 -12
- package/src/screens/SmartIr/__test__/SmartIr.test.js +3 -11
- package/src/screens/SmartIr/components/GroupButtonByType/GroupButtonByType.js +6 -5
- package/src/screens/SmartIr/components/SelectBrand.js +2 -2
- package/src/screens/SubUnit/AddSubUnit.js +1 -0
- package/src/screens/SubUnit/EditSubUnit.js +3 -2
- package/src/screens/SubUnit/ManageSubUnit.js +5 -5
- package/src/screens/SubUnit/__test__/AddSubUnit.test.js +9 -31
- package/src/screens/SubUnit/__test__/EditSubUnit.test.js +12 -30
- package/src/screens/SubUnit/__test__/ManageSubUnit.test.js +2 -2
- package/src/screens/SubUnit/hooks/__test__/useManageSubUnit.test.js +0 -12
- package/src/screens/SyncLGDevice/__test__/AddLGDevice.test.js +7 -20
- package/src/screens/Template/__test__/EditTemplate.test.js +4 -15
- package/src/screens/Template/__test__/GatewayList.test.js +0 -9
- package/src/screens/Template/__test__/detail.test.js +8 -8
- package/src/screens/Template/__test__/index.test.js +3 -14
- package/src/screens/Template/detail.js +2 -2
- package/src/screens/Unit/Detail.js +12 -53
- package/src/screens/Unit/SelectAddToFavorites.js +2 -2
- package/src/screens/Unit/SelectAddress.js +9 -4
- package/src/screens/Unit/SmartAccountItem.js +2 -2
- package/src/screens/Unit/Station/__test__/index.test.js +2 -2
- package/src/screens/Unit/Summaries.js +24 -29
- package/src/screens/Unit/__test__/AddMenu.test.js +5 -2
- package/src/screens/Unit/__test__/CheckSendEmail.test.js +0 -12
- package/src/screens/Unit/__test__/ChooseLocation.test.js +1 -4
- package/src/screens/Unit/__test__/Detail.test.js +14 -12
- package/src/screens/Unit/__test__/ManageUnit.test.js +2 -17
- package/src/screens/Unit/__test__/MoreMenu.test.js +1 -11
- package/src/screens/Unit/__test__/SelectAddToFavorites.test.js +3 -14
- package/src/screens/Unit/__test__/SelectAddress.test.js +4 -17
- package/src/screens/Unit/__test__/SmartAccount.test.js +14 -11
- package/src/screens/Unit/__test__/SmartAccountItem.test.js +0 -11
- package/src/screens/Unit/__test__/Summaries.test.js +2 -14
- package/src/screens/Unit/components/AutomateScript/index.js +2 -2
- package/src/screens/Unit/components/ButtonWrapper/index.js +3 -4
- package/src/screens/Unit/components/Header/index.js +5 -4
- package/src/screens/Unit/components/SharedUnit/index.js +5 -5
- package/src/screens/Unit/components/__test__/Header.test.js +1 -14
- package/src/screens/Unit/components/__test__/MyUnitDevice.test.js +1 -11
- package/src/screens/Unit/components/__test__/SharedUnit.test.js +1 -11
- package/src/screens/UnitSummary/__test__/index.test.js +51 -17
- package/src/screens/UnitSummary/components/3PPowerConsumption/__test__/3PPowerConsumption.test.js +8 -25
- package/src/screens/UnitSummary/components/AirQuality/__test__/index.test.js +1 -7
- package/src/screens/UnitSummary/components/AirQuality/index.js +8 -3
- package/src/screens/UnitSummary/components/PowerConsumption/__test__/PowerConsumption.test.js +0 -11
- package/src/screens/UnitSummary/components/RunningDevices/__test__/index.test.js +1 -16
- package/src/screens/UnitSummary/components/Temperature/index.js +5 -1
- package/src/screens/UnitSummary/components/UvIndex/__test__/index.test.js +0 -8
- package/src/screens/UnitSummary/components/UvIndex/index.js +6 -2
- package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +2 -2
- package/src/screens/UnitSummary/components/WaterQuality/__test__/index.test.js +14 -18
- package/src/screens/UnitSummary/components/__test__/UnitSummary.test.js +8 -8
- package/src/screens/UnitSummary/index.js +4 -8
- package/src/utils/Converter/__test__/timer.test.js +8 -0
- package/src/utils/Functions/preloadImages.js +13 -14
- package/src/utils/Monitor.js +2 -3
- package/src/utils/Route/index.js +0 -1
- package/src/utils/Storage.js +1 -1
- package/src/commons/Device/WindSpeed/LinearChart/__test__/LinearChart.test.js +0 -48
- package/src/commons/Device/WindSpeed/LinearChart/index.js +0 -155
- package/src/screens/AddNewGateway/hooks/__Tests__/index.test.js +0 -27
- package/src/screens/AddNewGateway/hooks/index.js +0 -31
- package/src/screens/SubUnit/Detail.js +0 -150
- package/src/screens/SubUnit/__test__/Detail.test.js +0 -125
- package/src/screens/UnitSummary/components/Temperature/ChartAverage/index.js +0 -62
- package/src/screens/UnitSummary/components/Temperature/__test__/ChartAverage.test.js +0 -17
- package/src/utils/dateHelper/getTickValues.js +0 -22
package/README.md
CHANGED
|
@@ -191,7 +191,7 @@ export const MyFunctionalComponent = () => {
|
|
|
191
191
|
command_prefer_over_googlehome: false,
|
|
192
192
|
command_prefer_over_internet: false,
|
|
193
193
|
googlehome_actions: [],
|
|
194
|
-
icon: '
|
|
194
|
+
icon: 'caretup',
|
|
195
195
|
icon_kit: null,
|
|
196
196
|
id: 1,
|
|
197
197
|
key: '24240de0-5c8e-11ec-bf63-0242ac130002',
|
package/android/build.gradle
CHANGED
|
@@ -20,7 +20,7 @@ def safeExtGet(prop, fallback) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'maven'
|
|
23
|
+
apply plugin: 'maven-publish'
|
|
24
24
|
|
|
25
25
|
buildscript {
|
|
26
26
|
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
@@ -38,9 +38,6 @@ buildscript {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
apply plugin: 'com.android.library'
|
|
42
|
-
apply plugin: 'maven'
|
|
43
|
-
|
|
44
41
|
android {
|
|
45
42
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
46
43
|
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
|
|
@@ -109,7 +106,7 @@ afterEvaluate { project ->
|
|
|
109
106
|
task androidJavadoc(type: Javadoc) {
|
|
110
107
|
source = android.sourceSets.main.java.srcDirs
|
|
111
108
|
classpath += files(android.bootClasspath)
|
|
112
|
-
|
|
109
|
+
// classpath += files(project.getConfigurations().getByName('compile').asList())
|
|
113
110
|
include '**/*.java'
|
|
114
111
|
}
|
|
115
112
|
|
|
@@ -140,10 +137,10 @@ afterEvaluate { project ->
|
|
|
140
137
|
|
|
141
138
|
task installArchives(type: Upload) {
|
|
142
139
|
configuration = configurations.archives
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
// repositories.mavenDeployer {
|
|
141
|
+
// // Deploy to react-native-event-bridge/maven, ready to publish to npm
|
|
142
|
+
// repository url: "file://${projectDir}/../android/maven"
|
|
143
|
+
// configureReactNativePom pom
|
|
144
|
+
// }
|
|
148
145
|
}
|
|
149
146
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eohjsc/react-native-smart-city",
|
|
3
3
|
"title": "React Native Smart Home",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "TODO",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -61,45 +61,10 @@
|
|
|
61
61
|
"author": "Your Name <yourname@email.com>",
|
|
62
62
|
"license": "MIT",
|
|
63
63
|
"licenseFilename": "LICENSE",
|
|
64
|
-
"peerDependencies": {
|
|
65
|
-
"@react-native-community/clipboard": "*",
|
|
66
|
-
"react": "*",
|
|
67
|
-
"react-native": "*"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@babel/core": "^7.12.9",
|
|
71
|
-
"@babel/runtime": "^7.12.5",
|
|
72
|
-
"@react-native-community/eslint-config": "^2.0.0",
|
|
73
|
-
"@types/jest": "^26.0.19",
|
|
74
|
-
"@types/react": "^17.0.0",
|
|
75
|
-
"@types/react-native": "^0.63.43",
|
|
76
|
-
"@types/react-test-renderer": "^17.0.0",
|
|
77
|
-
"axios-mock-adapter": "^1.21.1",
|
|
78
|
-
"babel-jest": "^26.6.3",
|
|
79
|
-
"detox": "^18.3.1",
|
|
80
|
-
"eslint": "7.14.0",
|
|
81
|
-
"eslint-plugin-promise": "^4.2.1",
|
|
82
|
-
"eslint-plugin-react": "^7.21.5",
|
|
83
|
-
"eslint-plugin-react-native": "^3.10.0",
|
|
84
|
-
"factory-girl": "^5.0.4",
|
|
85
|
-
"husky": "^8.0.1",
|
|
86
|
-
"jest": "^26.6.3",
|
|
87
|
-
"jest-circus": "^26.6.3",
|
|
88
|
-
"jetifier": "^1.6.6",
|
|
89
|
-
"lint-staged": "^12.4.1",
|
|
90
|
-
"metro-react-native-babel-preset": "^0.66.2",
|
|
91
|
-
"node-html-parser": "^2.0.2",
|
|
92
|
-
"react": "17.0.2",
|
|
93
|
-
"react-native": "0.66.0",
|
|
94
|
-
"react-native-svg-transformer": "^0.14.3",
|
|
95
|
-
"react-test-renderer": "17.0.2",
|
|
96
|
-
"reactotron-react-native": "^3.6.4",
|
|
97
|
-
"typescript": "^4.1.3"
|
|
98
|
-
},
|
|
99
64
|
"dependencies": {
|
|
100
|
-
"@
|
|
101
|
-
"@ant-design/react-native": "^4.0.5",
|
|
65
|
+
"@babel/core": "^7.12.9",
|
|
102
66
|
"@babel/helper-environment-visitor": "^7.16.7",
|
|
67
|
+
"@babel/runtime": "^7.12.5",
|
|
103
68
|
"@eohjsc/react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
104
69
|
"@formatjs/intl-getcanonicallocales": "^1.4.5",
|
|
105
70
|
"@formatjs/intl-numberformat": "^5.6.2",
|
|
@@ -107,55 +72,71 @@
|
|
|
107
72
|
"@invertase/react-native-apple-authentication": "^1.1.2",
|
|
108
73
|
"@messageformat/core": "^3.0.0",
|
|
109
74
|
"@miblanchard/react-native-slider": "^2.2.0",
|
|
110
|
-
"@react-native-
|
|
111
|
-
"@react-native-
|
|
112
|
-
"@react-native-community/
|
|
113
|
-
"@react-native-community/checkbox": "^0.5.5",
|
|
75
|
+
"@react-native-async-storage/async-storage": "^1.23.1",
|
|
76
|
+
"@react-native-clipboard/clipboard": "^1.14.1",
|
|
77
|
+
"@react-native-community/checkbox": "^0.5.17",
|
|
114
78
|
"@react-native-community/datetimepicker": "https://github.com/hinh-eoh/datepicker",
|
|
79
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
115
80
|
"@react-native-community/geolocation": "^2.0.2",
|
|
116
|
-
"@react-native-community/masked-view": "^0.1.10",
|
|
117
81
|
"@react-native-community/netinfo": "^9.3.4",
|
|
118
|
-
"@react-native-community/segmented-control": "^2.1.1",
|
|
119
82
|
"@react-native-community/slider": "^3.0.3",
|
|
120
83
|
"@react-native-community/toolbar-android": "^0.1.0-rc.2",
|
|
121
|
-
"@react-native-
|
|
122
|
-
"@react-navigation/bottom-tabs": "^5.
|
|
123
|
-
"@react-navigation/drawer": "^
|
|
124
|
-
"@react-navigation/native": "^
|
|
125
|
-
"@react-navigation/stack": "^
|
|
126
|
-
"@sentry/react-native": "^
|
|
84
|
+
"@react-native-segmented-control/segmented-control": "^2.5.2",
|
|
85
|
+
"@react-navigation/bottom-tabs": "^6.5.20",
|
|
86
|
+
"@react-navigation/drawer": "^6.6.15",
|
|
87
|
+
"@react-navigation/native": "^6.1.17",
|
|
88
|
+
"@react-navigation/stack": "^6.3.29",
|
|
89
|
+
"@sentry/react-native": "^5.24.1",
|
|
127
90
|
"@testing-library/react-hooks": "^6.0.0",
|
|
91
|
+
"@types/jest": "^26.0.19",
|
|
92
|
+
"@types/react": "^17.0.0",
|
|
93
|
+
"@types/react-native": "^0.63.43",
|
|
94
|
+
"@types/react-test-renderer": "^17.0.0",
|
|
128
95
|
"apisauce": "^2.1.5",
|
|
129
96
|
"axios": "^0.19.2",
|
|
97
|
+
"axios-mock-adapter": "^1.21.1",
|
|
98
|
+
"babel-jest": "^26.6.3",
|
|
130
99
|
"base-64": "^1.0.0",
|
|
131
100
|
"deprecated-react-native-prop-types": "^2.3.0",
|
|
101
|
+
"detox": "^18.3.1",
|
|
132
102
|
"dotenv": "^8.2.0",
|
|
103
|
+
"eslint": "7.14.0",
|
|
104
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
105
|
+
"eslint-plugin-react": "^7.21.5",
|
|
106
|
+
"eslint-plugin-react-native": "^3.10.0",
|
|
107
|
+
"factory-girl": "^5.0.4",
|
|
133
108
|
"google-libphonenumber": "^3.2.10",
|
|
134
109
|
"home-assistant-js-websocket": "^5.7.0",
|
|
110
|
+
"husky": "^8.0.1",
|
|
135
111
|
"i18n-js": "^3.7.1",
|
|
136
112
|
"i18next": "^20.1.0",
|
|
113
|
+
"jest": "^26.6.3",
|
|
114
|
+
"jest-circus": "^26.6.3",
|
|
115
|
+
"jetifier": "^1.6.6",
|
|
116
|
+
"lint-staged": "^12.4.1",
|
|
137
117
|
"lodash": "^4.17.19",
|
|
138
|
-
"lottie-react-native": "
|
|
118
|
+
"lottie-react-native": "^6.7.2",
|
|
119
|
+
"metro-react-native-babel-preset": "^0.66.2",
|
|
139
120
|
"moment": "^2.27.0",
|
|
140
121
|
"moment-timezone": "^0.5.32",
|
|
122
|
+
"node-html-parser": "^2.0.2",
|
|
141
123
|
"numeral": "^2.0.6",
|
|
142
124
|
"patch-package": "^6.2.2",
|
|
143
125
|
"pluralize": "^8.0.0",
|
|
144
126
|
"postinstall": "^0.7.0",
|
|
145
127
|
"precompiled-mqtt": "^4.3.14-beta",
|
|
146
|
-
"pusher-js": "^
|
|
128
|
+
"pusher-js": "^8.4.0-rc2",
|
|
147
129
|
"pusher-js-auth": "^4.0.1",
|
|
148
130
|
"python-struct": "^1.1.3",
|
|
149
131
|
"querystring": "^0.2.0",
|
|
132
|
+
"react": "18.2.0",
|
|
150
133
|
"react-content-loader": "^6.0.3",
|
|
151
|
-
"react-dom": "
|
|
152
|
-
"react-hooks-global-state": "^2.
|
|
134
|
+
"react-dom": "18.2.0",
|
|
135
|
+
"react-hooks-global-state": "^2.1.0",
|
|
153
136
|
"react-i18next": "^11.8.12",
|
|
137
|
+
"react-native": "0.71.19",
|
|
154
138
|
"react-native-alert-async": "^1.0.5",
|
|
155
|
-
"react-native-android-keyboard-adjust": "^1.2.0",
|
|
156
139
|
"react-native-android-location-enabler": "^1.2.2",
|
|
157
|
-
"react-native-android-wifi": "^0.0.41",
|
|
158
|
-
"react-native-appearance": "^0.3.4",
|
|
159
140
|
"react-native-base64": "^0.1.0",
|
|
160
141
|
"react-native-ble-plx": "^2.0.3",
|
|
161
142
|
"react-native-bootsplash": "^2.2.5",
|
|
@@ -167,9 +148,9 @@
|
|
|
167
148
|
"react-native-deep-linking": "^2.2.0",
|
|
168
149
|
"react-native-device-info": "^10.3.0",
|
|
169
150
|
"react-native-draggable-flatlist": "^2.6.2",
|
|
170
|
-
"react-native-fast-image": "^8.3
|
|
151
|
+
"react-native-fast-image": "^8.6.3",
|
|
171
152
|
"react-native-geocoder": "^0.5.0",
|
|
172
|
-
"react-native-gesture-handler": "^
|
|
153
|
+
"react-native-gesture-handler": "^2.17.1",
|
|
173
154
|
"react-native-get-location": "^2.0.0",
|
|
174
155
|
"react-native-image-crop-picker": "^0.37.2",
|
|
175
156
|
"react-native-image-resizer": "^1.4.5",
|
|
@@ -177,40 +158,42 @@
|
|
|
177
158
|
"react-native-iphone-x-helper": "^1.2.1",
|
|
178
159
|
"react-native-linear-gradient": "^2.5.6",
|
|
179
160
|
"react-native-localize": "^1.4.1",
|
|
180
|
-
"react-native-maps": "
|
|
181
|
-
"react-native-
|
|
182
|
-
"react-native-modal": "^
|
|
183
|
-
"react-native-modal-datetime-picker": "^8.9.3",
|
|
161
|
+
"react-native-maps": "^1.15.6",
|
|
162
|
+
"react-native-modal": "^13.0.1",
|
|
163
|
+
"react-native-modal-datetime-picker": "^17.1.0",
|
|
184
164
|
"react-native-new-snap-carousel": "^3.9.3",
|
|
185
165
|
"react-native-onesignal": "^4.3.1",
|
|
186
166
|
"react-native-pager-view": "^5.4.1",
|
|
187
167
|
"react-native-parallax-scroll-view": "^0.21.3",
|
|
188
168
|
"react-native-parsed-text": "^0.0.22",
|
|
189
169
|
"react-native-permissions": "3.6.0",
|
|
190
|
-
"react-native-popover-view": "^
|
|
170
|
+
"react-native-popover-view": "^5.1.8",
|
|
191
171
|
"react-native-progress": "^5.0.0",
|
|
192
|
-
"react-native-reanimated": "
|
|
172
|
+
"react-native-reanimated": "2",
|
|
193
173
|
"react-native-responsive-fontsize": "^0.5.1",
|
|
194
174
|
"react-native-safe-area-context": "^3.1.1",
|
|
195
|
-
"react-native-screens": "^
|
|
175
|
+
"react-native-screens": "^3.32.0",
|
|
196
176
|
"react-native-super-grid": "^4.0.3",
|
|
197
177
|
"react-native-svg": "^12.1.0",
|
|
178
|
+
"react-native-svg-transformer": "^0.14.3",
|
|
198
179
|
"react-native-toast-message": "^2.1.1",
|
|
199
|
-
"react-native-udp": "4.1.
|
|
180
|
+
"react-native-udp": "^4.1.7",
|
|
181
|
+
"react-native-vector-icons": "^10.1.0",
|
|
200
182
|
"react-native-version-check": "^3.4.2",
|
|
201
183
|
"react-native-vlc-media-player": "^1.0.67",
|
|
202
|
-
"react-native-webview": "
|
|
184
|
+
"react-native-webview": "^12.0.2",
|
|
203
185
|
"react-native-wheel-color-picker": "^1.2.0",
|
|
204
186
|
"react-native-wheel-scrollview-picker": "^1.2.2",
|
|
205
187
|
"react-native-wifi-reborn": "4.5.0",
|
|
206
|
-
"react-
|
|
188
|
+
"react-test-renderer": "18.2.0",
|
|
207
189
|
"string-format": "^2.0.0",
|
|
208
190
|
"sync-directory": "^5.1.7",
|
|
209
191
|
"timezone-mock": "^1.1.3",
|
|
192
|
+
"typescript": "^4.1.3",
|
|
210
193
|
"uuid-by-string": "^3.0.2",
|
|
211
194
|
"uuidv4": "^6.2.13",
|
|
212
195
|
"validator": "^13.1.1",
|
|
213
|
-
"victory-native": "^
|
|
196
|
+
"victory-native": "^41.0.1"
|
|
214
197
|
},
|
|
215
198
|
"bugs": {
|
|
216
199
|
"url": "https://github.com/github_account/react-native-smart-city/issues"
|
|
@@ -6,8 +6,8 @@ import { Colors } from '../../../configs';
|
|
|
6
6
|
import { AccessibilityLabel } from '../../../configs/Constants';
|
|
7
7
|
import { factory } from 'factory-girl';
|
|
8
8
|
import IconComponent from '../../IconComponent';
|
|
9
|
-
import { IconOutline } from '@ant-design/icons-react-native';
|
|
10
9
|
import Toast from 'react-native-toast-message';
|
|
10
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
11
11
|
class Sensor {}
|
|
12
12
|
|
|
13
13
|
factory.define('Sensor', Sensor, {});
|
|
@@ -94,7 +94,7 @@ describe('Test ItemQuickAction', () => {
|
|
|
94
94
|
await buttonOnActionPress.props.onPress();
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
-
const icon = instance.findByType(
|
|
97
|
+
const icon = instance.findByType(AntDesign);
|
|
98
98
|
expect(icon.props.color).toEqual(Colors.TextGray);
|
|
99
99
|
});
|
|
100
100
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, ActivityIndicator } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
4
4
|
import { Colors } from '../../configs';
|
|
5
5
|
|
|
6
6
|
import Text from '../Text';
|
|
@@ -116,7 +116,7 @@ const NumberUpDownActionTemplate = ({
|
|
|
116
116
|
onPress={doActionDown}
|
|
117
117
|
accessibilityLabel={AccessibilityLabel.NUMBER_ACTION_DOWN}
|
|
118
118
|
>
|
|
119
|
-
<
|
|
119
|
+
<AntDesign name="down" size={32} color={Colors.Primary} />
|
|
120
120
|
</TouchableOpacity>
|
|
121
121
|
|
|
122
122
|
<Text accessibilityLabel={'text_format'} type="H2">
|
|
@@ -132,7 +132,7 @@ const NumberUpDownActionTemplate = ({
|
|
|
132
132
|
onPress={doActionUp}
|
|
133
133
|
accessibilityLabel={AccessibilityLabel.NUMBER_ACTION_UP}
|
|
134
134
|
>
|
|
135
|
-
<
|
|
135
|
+
<AntDesign name="up" size={32} color={Colors.Primary} />
|
|
136
136
|
</TouchableOpacity>
|
|
137
137
|
</View>
|
|
138
138
|
</View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
3
3
|
import { Switch, View } from 'react-native';
|
|
4
4
|
import styles from './ButtonWrapperStyles';
|
|
5
5
|
import Text from '../../../Text';
|
|
@@ -28,7 +28,7 @@ const ButtonWrapper = memo(
|
|
|
28
28
|
</View>
|
|
29
29
|
) : (
|
|
30
30
|
<View style={styles.wrapHeadline}>
|
|
31
|
-
<
|
|
31
|
+
<AntDesign name={'lock'} size={20} color={Colors.Gray9} />
|
|
32
32
|
<Text style={styles.textAutoLock}>
|
|
33
33
|
{isButtonEnable ? t('auto_lock_enabled') : t('auto_lock_when')}
|
|
34
34
|
</Text>
|
|
@@ -49,7 +49,7 @@ const ButtonWrapper = memo(
|
|
|
49
49
|
<Text type="Body" style={styles.textValue}>
|
|
50
50
|
{t('instant')}
|
|
51
51
|
</Text>
|
|
52
|
-
<
|
|
52
|
+
<AntDesign name="right" size={20} color={Colors.Gray7} />
|
|
53
53
|
</View>
|
|
54
54
|
)}
|
|
55
55
|
{isButtonReLockTiming && (
|
|
@@ -18,7 +18,7 @@ describe('Test ItemPasscode', () => {
|
|
|
18
18
|
tree = await create(wrapComponent());
|
|
19
19
|
});
|
|
20
20
|
const instance = tree.root;
|
|
21
|
-
const
|
|
22
|
-
expect(
|
|
21
|
+
const touchableOpacities = instance.findAllByType(TouchableOpacity);
|
|
22
|
+
expect(touchableOpacities).toHaveLength(2);
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -18,10 +18,10 @@ const wrapComponent = () => (
|
|
|
18
18
|
describe('Test SetupGeneratePasscode', () => {
|
|
19
19
|
let tree;
|
|
20
20
|
|
|
21
|
-
const
|
|
21
|
+
const mockedNavigate = useNavigation().navigate;
|
|
22
22
|
|
|
23
23
|
beforeEach(() => {
|
|
24
|
-
|
|
24
|
+
mockedNavigate.mockClear();
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
it('render PasscodeList', async () => {
|
|
@@ -41,7 +41,7 @@ describe('Test SetupGeneratePasscode', () => {
|
|
|
41
41
|
await act(async () => {
|
|
42
42
|
await passcode_list[0].props.onPress();
|
|
43
43
|
});
|
|
44
|
-
expect(
|
|
44
|
+
expect(global.mockedNavigate).toBeCalledWith(Routes.SmartLockStack, {
|
|
45
45
|
screen: Routes.ItemPasscode,
|
|
46
46
|
params: {
|
|
47
47
|
item: { code: 123361, name: 'Do Loi' },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo, useCallback, useMemo } from 'react';
|
|
2
2
|
import { TextInput, View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
5
5
|
|
|
6
6
|
import Text from '../../../Text';
|
|
@@ -39,7 +39,7 @@ const PasscodeList = memo(() => {
|
|
|
39
39
|
<View style={styles.wrap}>
|
|
40
40
|
<View style={styles.searchBox}>
|
|
41
41
|
<View>
|
|
42
|
-
<
|
|
42
|
+
<AntDesign name="search" size={24} style={styles.search} />
|
|
43
43
|
</View>
|
|
44
44
|
<TextInput
|
|
45
45
|
placeholder={t('search')}
|
|
@@ -58,7 +58,7 @@ const PasscodeList = memo(() => {
|
|
|
58
58
|
<Text style={styles.textCode}>{item.code}</Text>
|
|
59
59
|
<Text style={styles.textName}>{item.name}</Text>
|
|
60
60
|
</View>
|
|
61
|
-
<
|
|
61
|
+
<AntDesign name="right" size={20} color={Colors.Gray8} />
|
|
62
62
|
</TouchableOpacity>
|
|
63
63
|
))}
|
|
64
64
|
</View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
3
3
|
import { Text, TouchableOpacity, View } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { RadioCircle } from '../../..';
|
|
@@ -50,7 +50,7 @@ const ButtonWrapper = memo(
|
|
|
50
50
|
{isButtonChooseUser && (
|
|
51
51
|
<TouchableOpacity style={styles.buttonValue}>
|
|
52
52
|
<Text style={styles.value}>{value}</Text>
|
|
53
|
-
<
|
|
53
|
+
<AntDesign name="right" size={20} color={Colors.Gray8} />
|
|
54
54
|
</TouchableOpacity>
|
|
55
55
|
)}
|
|
56
56
|
{isButtonSetTime && (
|
|
@@ -7,17 +7,6 @@ import { AccessibilityLabel } from '../../../../../configs/Constants';
|
|
|
7
7
|
import { SCProvider } from '../../../../../context';
|
|
8
8
|
import WheelDateTimePicker from '../../../../WheelDateTimePicker';
|
|
9
9
|
|
|
10
|
-
const mockNavigate = jest.fn();
|
|
11
|
-
jest.mock('@react-navigation/native', () => {
|
|
12
|
-
return {
|
|
13
|
-
...jest.requireActual('@react-navigation/native'),
|
|
14
|
-
useRoute: jest.fn(),
|
|
15
|
-
useNavigation: () => ({
|
|
16
|
-
navigate: mockNavigate,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
|
|
21
10
|
const wrapComponent = () => (
|
|
22
11
|
<SCProvider initState={mockSCStore({})}>
|
|
23
12
|
<SetupGeneratePasscode />
|
|
@@ -27,10 +16,6 @@ const wrapComponent = () => (
|
|
|
27
16
|
describe('Test SetupGeneratePasscode', () => {
|
|
28
17
|
let tree;
|
|
29
18
|
|
|
30
|
-
beforeEach(() => {
|
|
31
|
-
mockNavigate.mockClear();
|
|
32
|
-
});
|
|
33
|
-
|
|
34
19
|
const getElement = (instance) => {
|
|
35
20
|
const changeName = instance.findAll(
|
|
36
21
|
(item) =>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Switch } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
4
4
|
|
|
5
5
|
import Text from '../../Text';
|
|
6
6
|
import styles from './OnOffSimpleTemplateStyle';
|
|
@@ -15,7 +15,7 @@ const OnOffSimpleTemplate = ({
|
|
|
15
15
|
return (
|
|
16
16
|
<View style={styles.wrap}>
|
|
17
17
|
<View style={styles.iconAndText}>
|
|
18
|
-
<
|
|
18
|
+
<AntDesign name="poweroff" size={20} style={styles.marginRight} />
|
|
19
19
|
<Text type="H4">{actionGroup.title}</Text>
|
|
20
20
|
</View>
|
|
21
21
|
{isOn !== null && (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, ScrollView } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
4
4
|
import { Colors } from '../../configs';
|
|
5
5
|
|
|
6
6
|
import Text from '../../commons/Text';
|
|
@@ -139,7 +139,7 @@ const OptionsDropdownActionTemplate = ({
|
|
|
139
139
|
>
|
|
140
140
|
{displaySelected}
|
|
141
141
|
</Text>
|
|
142
|
-
<
|
|
142
|
+
<AntDesign name="right" size={20} />
|
|
143
143
|
</TouchableOpacity>
|
|
144
144
|
<AlertAction
|
|
145
145
|
visible={stateAlert.visible}
|
|
@@ -5,7 +5,7 @@ import styles from './SmartTiviActionTemplateStyles';
|
|
|
5
5
|
import Text from '../../Text';
|
|
6
6
|
import { Colors } from '../../../configs';
|
|
7
7
|
import { SMART_TIVI_BUTTON } from '../../../configs/Constants';
|
|
8
|
-
import
|
|
8
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
9
9
|
import CircleButton from './component/CircleButton';
|
|
10
10
|
import RectangleButton from './component/RectangleButton';
|
|
11
11
|
import ControlPlay from './component/ControlPlay';
|
|
@@ -97,7 +97,7 @@ const SmartTiviActionTemplate = memo(
|
|
|
97
97
|
<CircleButton
|
|
98
98
|
type="small"
|
|
99
99
|
icon={
|
|
100
|
-
<
|
|
100
|
+
<AntDesign
|
|
101
101
|
name="poweroff"
|
|
102
102
|
size={20}
|
|
103
103
|
color={Colors.Gray6}
|
|
@@ -3,7 +3,7 @@ import { TouchableOpacity, View, Image } from 'react-native';
|
|
|
3
3
|
import styles from './CircleButtonStyles';
|
|
4
4
|
import Text from '../../../Text';
|
|
5
5
|
import { Colors, Images } from '../../../../configs';
|
|
6
|
-
import
|
|
6
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
7
7
|
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
9
|
const CircleButton = memo(
|
|
@@ -46,7 +46,7 @@ const CircleButton = memo(
|
|
|
46
46
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.UP_BUTTON
|
|
47
47
|
}
|
|
48
48
|
>
|
|
49
|
-
<
|
|
49
|
+
<AntDesign size={14} name={'caretup'} />
|
|
50
50
|
</TouchableOpacity>
|
|
51
51
|
</View>
|
|
52
52
|
<View style={styles.bodyMultipleButton}>
|
|
@@ -57,7 +57,7 @@ const CircleButton = memo(
|
|
|
57
57
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.LEFT_BUTTON
|
|
58
58
|
}
|
|
59
59
|
>
|
|
60
|
-
<
|
|
60
|
+
<AntDesign size={14} name={'caretleft'} />
|
|
61
61
|
</TouchableOpacity>
|
|
62
62
|
<TouchableOpacity
|
|
63
63
|
style={[styles.okButton]}
|
|
@@ -77,7 +77,7 @@ const CircleButton = memo(
|
|
|
77
77
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.RIGHT_BUTTON
|
|
78
78
|
}
|
|
79
79
|
>
|
|
80
|
-
<
|
|
80
|
+
<AntDesign size={14} name={'caret-right'} />
|
|
81
81
|
</TouchableOpacity>
|
|
82
82
|
</View>
|
|
83
83
|
<View style={styles.footerMultipleButton}>
|
|
@@ -88,7 +88,7 @@ const CircleButton = memo(
|
|
|
88
88
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.DOWN_BUTTON
|
|
89
89
|
}
|
|
90
90
|
>
|
|
91
|
-
<
|
|
91
|
+
<AntDesign size={14} name={'caretdown'} />
|
|
92
92
|
</TouchableOpacity>
|
|
93
93
|
</View>
|
|
94
94
|
</View>
|
|
@@ -6,7 +6,7 @@ import styles from './ControlPlayStyles';
|
|
|
6
6
|
import { Pause } from './Icon';
|
|
7
7
|
import { AccessibilityLabel } from '../../../../configs/Constants';
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
10
10
|
|
|
11
11
|
const ControlPlay = memo(
|
|
12
12
|
({ onPressPrev, onPressStop, onPressNext, wrapStyle }) => {
|
|
@@ -19,9 +19,9 @@ const ControlPlay = memo(
|
|
|
19
19
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.PREV_BUTTON
|
|
20
20
|
}
|
|
21
21
|
>
|
|
22
|
-
<
|
|
22
|
+
<AntDesign
|
|
23
23
|
size={32}
|
|
24
|
-
name={'
|
|
24
|
+
name={'stepbackward'}
|
|
25
25
|
color={Colors.Gray9}
|
|
26
26
|
style={[styles.button]}
|
|
27
27
|
/>
|
|
@@ -42,9 +42,9 @@ const ControlPlay = memo(
|
|
|
42
42
|
AccessibilityLabel.SMART_TIVI_TEMPLATE.NEXT_BUTTON
|
|
43
43
|
}
|
|
44
44
|
>
|
|
45
|
-
<
|
|
45
|
+
<AntDesign
|
|
46
46
|
size={32}
|
|
47
|
-
name={'
|
|
47
|
+
name={'stepforward'}
|
|
48
48
|
color={Colors.Gray9}
|
|
49
49
|
style={[styles.button]}
|
|
50
50
|
/>
|
|
@@ -6,7 +6,7 @@ import React, {
|
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
8
|
import { View, TouchableOpacity } from 'react-native';
|
|
9
|
-
import
|
|
9
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
10
10
|
import Text from '../../commons/Text';
|
|
11
11
|
import { useConfigGlobalState } from '../../iot/states';
|
|
12
12
|
import styles from './TerminalBoxTemplateStyle';
|
|
@@ -174,7 +174,7 @@ const TerminalBoxTemplate = ({ item, doAction, isWidgetOrder }) => {
|
|
|
174
174
|
accessibilityLabel={AccessibilityLabel.TERMINAL_BOX_BUTTON_SEND}
|
|
175
175
|
disabled={!value}
|
|
176
176
|
>
|
|
177
|
-
<
|
|
177
|
+
<AntDesign name="send" size={25} />
|
|
178
178
|
</TouchableOpacity>
|
|
179
179
|
</View>
|
|
180
180
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import AntDesign from 'react-native-vector-icons/AntDesign';
|
|
4
4
|
import Text from '../../commons/Text';
|
|
5
5
|
import { AlertAction } from '../../commons';
|
|
6
6
|
import { useDropdownAction } from './hooks/useDropdownAction';
|
|
@@ -48,7 +48,7 @@ const TextBoxTemplate = ({ item, doAction, isWidgetOrder }) => {
|
|
|
48
48
|
onPress={onShowAlert}
|
|
49
49
|
accessibilityLabel={AccessibilityLabel.TEXT_BOX_BUTTON_EDIT}
|
|
50
50
|
>
|
|
51
|
-
<
|
|
51
|
+
<AntDesign name="edit" size={25} />
|
|
52
52
|
</TouchableOpacity>
|
|
53
53
|
</View>
|
|
54
54
|
<AlertAction
|
|
@@ -23,7 +23,7 @@ describe('Test ThreeButtonTemplate', () => {
|
|
|
23
23
|
command_prefer_over_googlehome: false,
|
|
24
24
|
command_prefer_over_internet: false,
|
|
25
25
|
googlehome_actions: [],
|
|
26
|
-
icon: '
|
|
26
|
+
icon: 'caretup',
|
|
27
27
|
id: 9,
|
|
28
28
|
key: '2b949045-8e03-4c07-a855-7794ade2e69c',
|
|
29
29
|
},
|
|
@@ -45,13 +45,13 @@ describe('Test ThreeButtonTemplate', () => {
|
|
|
45
45
|
command_prefer_over_googlehome: false,
|
|
46
46
|
command_prefer_over_internet: false,
|
|
47
47
|
googlehome_actions: [],
|
|
48
|
-
icon: '
|
|
48
|
+
icon: 'caretdown',
|
|
49
49
|
id: 10,
|
|
50
50
|
key: 'a492e08c-8cb1-44ee-8ea0-46aaca4e5141',
|
|
51
51
|
},
|
|
52
|
-
icon1: '
|
|
52
|
+
icon1: 'caretup',
|
|
53
53
|
icon2: 'stop',
|
|
54
|
-
icon3: '
|
|
54
|
+
icon3: 'caretdown',
|
|
55
55
|
text1: 'UP',
|
|
56
56
|
text2: 'STOP/UNLOCK',
|
|
57
57
|
text3: 'DOWN',
|