@eohjsc/react-native-smart-city 0.7.3-rc15 → 0.7.3-rc17
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
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.7.3-
|
|
4
|
+
"version": "0.7.3-rc17",
|
|
5
5
|
"description": "TODO",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"react-native-reanimated": "3.8.1",
|
|
175
175
|
"react-native-responsive-fontsize": "^0.5.1",
|
|
176
176
|
"react-native-safe-area-context": "^3.1.1",
|
|
177
|
-
"react-native-screens": "
|
|
177
|
+
"react-native-screens": "3.32.0",
|
|
178
178
|
"react-native-super-grid": "^4.0.3",
|
|
179
179
|
"react-native-svg": "^12.1.0",
|
|
180
180
|
"react-native-svg-transformer": "^0.14.3",
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import React, { memo, useContext, useEffect } from 'react';
|
|
2
|
-
import { AppState, View } from 'react-native';
|
|
3
1
|
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
|
-
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
5
|
-
import { BleManager } from 'react-native-ble-plx';
|
|
6
2
|
import NetInfo from '@react-native-community/netinfo';
|
|
3
|
+
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
7
4
|
import { get } from 'lodash';
|
|
5
|
+
import React, { memo, useContext, useEffect } from 'react';
|
|
6
|
+
import { AppState, View } from 'react-native';
|
|
7
|
+
import { BleManager } from 'react-native-ble-plx';
|
|
8
8
|
|
|
9
9
|
import Text from '../commons/Text';
|
|
10
|
+
import { API, Colors, Device } from '../configs';
|
|
11
|
+
import { SCContext } from '../context';
|
|
12
|
+
import { Action } from '../context/actionType';
|
|
10
13
|
import { useTranslations } from '../hooks/Common/useTranslations';
|
|
11
14
|
import { unwatchAllConfigs } from '../iot/Monitor';
|
|
12
|
-
import { API, Colors, Device } from '../configs';
|
|
13
|
-
import Route from '../utils/Route';
|
|
14
15
|
import ActivityLogScreen from '../screens/ActivityLog';
|
|
16
|
+
import Route from '../utils/Route';
|
|
15
17
|
import { screenOptions } from './utils';
|
|
16
|
-
import { SCContext } from '../context';
|
|
17
|
-
import { Action } from '../context/actionType';
|
|
18
18
|
|
|
19
|
+
import { useBluetoothConnection } from '../hooks/IoT';
|
|
20
|
+
import { realScanBluetoothDevices } from '../iot/RemoteControl/Bluetooth';
|
|
21
|
+
import AllCamera from '../screens/AllCamera';
|
|
22
|
+
import AllGateway from '../screens/AllGateway';
|
|
19
23
|
import AQIGuide from '../screens/AQIGuide';
|
|
20
|
-
import
|
|
24
|
+
import ChooseAction from '../screens/Automate/AddNewAction/ChooseAction';
|
|
25
|
+
import ChooseConfig from '../screens/Automate/AddNewAction/ChooseConfig';
|
|
26
|
+
import SelectControlDevices from '../screens/Automate/AddNewAction/SelectControlDevices';
|
|
27
|
+
import SelectMonitorDevices from '../screens/Automate/AddNewAction/SelectMonitorDevices';
|
|
28
|
+
import SetupConfigCondition from '../screens/Automate/AddNewAction/SetupConfigCondition';
|
|
29
|
+
import SetupScriptDelay from '../screens/Automate/AddNewAction/SetupScriptDelay';
|
|
30
|
+
import SetupScriptNotify from '../screens/Automate/AddNewAction/SetupScriptNotify';
|
|
31
|
+
import AddAutomationTypeSmart from '../screens/Automate/AddNewAutoSmart/AddAutomationTypeSmart';
|
|
32
|
+
import AddUnknownTypeSmart from '../screens/Automate/AddNewAutoSmart/AddUnknownTypeSmart';
|
|
33
|
+
import EditActionsList from '../screens/Automate/EditActionsList';
|
|
34
|
+
import UpdateActionScript from '../screens/Automate/EditActionsList/UpdateActionScript';
|
|
35
|
+
import AddNewOneTap from '../screens/Automate/OneTap';
|
|
36
|
+
import ScenarioName from '../screens/Automate/Scenario/ScenarioName';
|
|
37
|
+
import ScriptDetail from '../screens/Automate/ScriptDetail';
|
|
38
|
+
import SetSchedule from '../screens/Automate/SetSchedule';
|
|
39
|
+
import ValueChangeName from '../screens/Automate/ValueChange/ValueChangeName';
|
|
21
40
|
import ChangePosition from '../screens/ChangePosition';
|
|
41
|
+
import ConfirmUnitDeletion from '../screens/ConfirmUnitDeletion';
|
|
42
|
+
import DeviceDetail from '../screens/Device/detail';
|
|
43
|
+
import EditDevice from '../screens/Device/EditDevice/index';
|
|
44
|
+
import DeviceInfo from '../screens/DeviceInfo';
|
|
45
|
+
import EmergencySetting from '../screens/EmergencySetting';
|
|
46
|
+
import EnterPassword from '../screens/EnterPassword';
|
|
47
|
+
import GuestInfo from '../screens/GuestInfo';
|
|
48
|
+
import ManageAccessScreen from '../screens/ManageAccess';
|
|
49
|
+
import MoveToAnotherSubUnit from '../screens/MoveToAnotherSubUnit';
|
|
50
|
+
import PlaybackCamera from '../screens/PlayBackCamera';
|
|
51
|
+
import SelectUnit from '../screens/SelectUnit';
|
|
52
|
+
import InfoMemberUnit from '../screens/Sharing/InfoMemberUnit';
|
|
22
53
|
import UnitMemberList from '../screens/Sharing/UnitMemberList';
|
|
54
|
+
import SideMenuDetail from '../screens/SideMenuDetail';
|
|
55
|
+
import EditSubUnit from '../screens/SubUnit/EditSubUnit';
|
|
23
56
|
import ManageSubUnit from '../screens/SubUnit/ManageSubUnit';
|
|
24
|
-
import
|
|
57
|
+
import TDSGuide from '../screens/TDSGuide';
|
|
25
58
|
import ChooseLocation from '../screens/Unit/ChooseLocation';
|
|
59
|
+
import UnitDetail from '../screens/Unit/Detail';
|
|
26
60
|
import ManageUnit from '../screens/Unit/ManageUnit';
|
|
61
|
+
import SelectAddress from '../screens/Unit/SelectAddress';
|
|
62
|
+
import SelectAddToFavorites from '../screens/Unit/SelectAddToFavorites';
|
|
27
63
|
import ListSmartAccount from '../screens/Unit/SmartAccount';
|
|
28
|
-
import UnitDetail from '../screens/Unit/Detail';
|
|
29
64
|
import UnitSummary from '../screens/UnitSummary';
|
|
30
65
|
import UVIndexGuide from '../screens/UVIndexGuide';
|
|
31
|
-
import TDSGuide from '../screens/TDSGuide';
|
|
32
66
|
import WaterQualityGuide from '../screens/WaterQualityGuide';
|
|
33
|
-
import DeviceInfo from '../screens/DeviceInfo';
|
|
34
|
-
import AddNewOneTap from '../screens/Automate/OneTap';
|
|
35
|
-
import AddUnknownTypeSmart from '../screens/Automate/AddNewAutoSmart/AddUnknownTypeSmart';
|
|
36
|
-
import PlaybackCamera from '../screens/PlayBackCamera';
|
|
37
|
-
import AllCamera from '../screens/AllCamera';
|
|
38
|
-
import ManageAccessScreen from '../screens/ManageAccess';
|
|
39
|
-
import MoveToAnotherSubUnit from '../screens/MoveToAnotherSubUnit';
|
|
40
|
-
import GuestInfo from '../screens/GuestInfo';
|
|
41
|
-
import ScriptDetail from '../screens/Automate/ScriptDetail';
|
|
42
|
-
import EditActionsList from '../screens/Automate/EditActionsList';
|
|
43
|
-
import SelectUnit from '../screens/SelectUnit';
|
|
44
|
-
import SetSchedule from '../screens/Automate/SetSchedule';
|
|
45
|
-
import SelectMonitorDevices from '../screens/Automate/AddNewAction/SelectMonitorDevices';
|
|
46
|
-
import EditSubUnit from '../screens/SubUnit/EditSubUnit';
|
|
47
|
-
import SetupConfigCondition from '../screens/Automate/AddNewAction/SetupConfigCondition';
|
|
48
|
-
import EditDevice from '../screens/Device/EditDevice/index';
|
|
49
|
-
import EmergencySetting from '../screens/EmergencySetting';
|
|
50
|
-
import ConfirmUnitDeletion from '../screens/ConfirmUnitDeletion';
|
|
51
|
-
import InfoMemberUnit from '../screens/Sharing/InfoMemberUnit';
|
|
52
|
-
import EnterPassword from '../screens/EnterPassword';
|
|
53
|
-
import AllGateway from '../screens/AllGateway';
|
|
54
|
-
import SelectAddToFavorites from '../screens/Unit/SelectAddToFavorites';
|
|
55
|
-
import { HanetCameraStack } from './HanetCameraStack';
|
|
56
67
|
import { axiosGet, fetchWithCache } from '../utils/Apis/axios';
|
|
57
|
-
import SideMenuDetail from '../screens/SideMenuDetail';
|
|
58
|
-
import { styles } from './UnitStackStyles';
|
|
59
|
-
import { useBluetoothConnection } from '../hooks/IoT';
|
|
60
|
-
import { realScanBluetoothDevices } from '../iot/RemoteControl/Bluetooth';
|
|
61
68
|
import { ToastBottomHelper } from '../utils/Utils';
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import ChooseAction from '../screens/Automate/AddNewAction/ChooseAction';
|
|
65
|
-
import ScenarioName from '../screens/Automate/Scenario/ScenarioName';
|
|
66
|
-
import ValueChangeName from '../screens/Automate/ValueChange/ValueChangeName';
|
|
67
|
-
import AddAutomationTypeSmart from '../screens/Automate/AddNewAutoSmart/AddAutomationTypeSmart';
|
|
68
|
-
import SetupScriptNotify from '../screens/Automate/AddNewAction/SetupScriptNotify';
|
|
69
|
-
import SetupScriptDelay from '../screens/Automate/AddNewAction/SetupScriptDelay';
|
|
70
|
-
import UpdateActionScript from '../screens/Automate/EditActionsList/UpdateActionScript';
|
|
69
|
+
import { HanetCameraStack } from './HanetCameraStack';
|
|
70
|
+
import { styles } from './UnitStackStyles';
|
|
71
71
|
|
|
72
72
|
const Stack = createNativeStackNavigator();
|
|
73
73
|
|
|
@@ -186,7 +186,6 @@ export const UnitStack = memo((props) => {
|
|
|
186
186
|
borderBottomWidth: Device.isIOS === 'android' ? 1 : 0,
|
|
187
187
|
borderColor: Colors.Gray4,
|
|
188
188
|
},
|
|
189
|
-
headerBackTitle: true,
|
|
190
189
|
}}
|
|
191
190
|
>
|
|
192
191
|
<Stack.Screen
|
|
@@ -296,13 +295,7 @@ export const UnitStack = memo((props) => {
|
|
|
296
295
|
title: t('tds_information'),
|
|
297
296
|
}}
|
|
298
297
|
/>
|
|
299
|
-
<Stack.Screen
|
|
300
|
-
name={Route.AQIGuide}
|
|
301
|
-
component={AQIGuide}
|
|
302
|
-
options={{
|
|
303
|
-
title: t('AQI Guide'),
|
|
304
|
-
}}
|
|
305
|
-
/>
|
|
298
|
+
<Stack.Screen name={Route.AQIGuide} component={AQIGuide} />
|
|
306
299
|
<Stack.Screen
|
|
307
300
|
name={Route.WaterQualityGuide}
|
|
308
301
|
component={WaterQualityGuide}
|