@eohjsc/react-native-smart-city 0.7.3-rc14 → 0.7.3-rc15
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-rc15",
|
|
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": "^3.
|
|
177
|
+
"react-native-screens": "^3.34.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,32 +1,32 @@
|
|
|
1
|
-
import React, { memo, useState, useCallback, useRef, useEffect } from 'react';
|
|
2
|
-
import { View, ScrollView, TouchableOpacity } from 'react-native';
|
|
3
|
-
import MapView, { Marker, Circle, PROVIDER_GOOGLE } from 'react-native-maps';
|
|
4
|
-
import { useNavigation } from '@react-navigation/native';
|
|
5
1
|
import { IconOutline } from '@ant-design/icons-react-native';
|
|
6
|
-
import
|
|
2
|
+
import { useNavigation } from '@react-navigation/native';
|
|
3
|
+
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { ScrollView, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import MapView, { Circle, Marker, PROVIDER_GOOGLE } from 'react-native-maps';
|
|
7
6
|
import { check, RESULTS } from 'react-native-permissions';
|
|
7
|
+
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
8
8
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
9
9
|
|
|
10
|
-
import Text from '../../commons/Text';
|
|
11
10
|
import { FullLoading } from '../../commons';
|
|
11
|
+
import BottomButtonView from '../../commons/BottomButtonView';
|
|
12
12
|
import SearchBarLocation from '../../commons/SearchLocation';
|
|
13
13
|
import RowLocation from '../../commons/SearchLocation/RowLocation';
|
|
14
|
-
import
|
|
14
|
+
import Text from '../../commons/Text';
|
|
15
15
|
import { API, Colors, SCConfig } from '../../configs';
|
|
16
16
|
import {
|
|
17
17
|
AccessibilityLabel,
|
|
18
|
-
MAP_INITIAL_REGION,
|
|
19
18
|
EOH_LOCATION,
|
|
19
|
+
MAP_INITIAL_REGION,
|
|
20
20
|
} from '../../configs/Constants';
|
|
21
|
-
import
|
|
22
|
-
import Routes from '../../utils/Route';
|
|
21
|
+
import { axiosGet } from '../../utils/Apis/axios';
|
|
23
22
|
import {
|
|
24
23
|
GEOLOCATION_ERROR,
|
|
25
24
|
keyPermission,
|
|
26
25
|
OpenSetting,
|
|
27
26
|
} from '../../utils/Permission/common';
|
|
27
|
+
import Routes from '../../utils/Route';
|
|
28
28
|
import { openPromptEnableLocation } from '../../utils/Setting/Location';
|
|
29
|
-
import
|
|
29
|
+
import styles from './indexStyle';
|
|
30
30
|
|
|
31
31
|
navigator.geolocation = require('@react-native-community/geolocation');
|
|
32
32
|
|
|
@@ -226,7 +226,7 @@ const AddLocationMaps = memo(() => {
|
|
|
226
226
|
accessibilityLabel={AccessibilityLabel.BUTTON_CHOOSE_ON_MAP}
|
|
227
227
|
>
|
|
228
228
|
<IconOutline
|
|
229
|
-
name="
|
|
229
|
+
name="environment"
|
|
230
230
|
size={27}
|
|
231
231
|
color={Colors.Primary}
|
|
232
232
|
/>
|
|
@@ -275,7 +275,7 @@ const AddLocationMaps = memo(() => {
|
|
|
275
275
|
tracksViewChanges={false}
|
|
276
276
|
>
|
|
277
277
|
<IconOutline
|
|
278
|
-
name="
|
|
278
|
+
name="environment"
|
|
279
279
|
size={27}
|
|
280
280
|
color={Colors.Blue10}
|
|
281
281
|
/>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { TouchableOpacity, View, ScrollView } from 'react-native';
|
|
3
|
-
import MapView, { Marker, Circle, PROVIDER_GOOGLE } from 'react-native-maps';
|
|
4
|
-
import { useNavigation } from '@react-navigation/native';
|
|
5
1
|
import { IconOutline } from '@ant-design/icons-react-native';
|
|
6
|
-
import
|
|
2
|
+
import { useNavigation } from '@react-navigation/native';
|
|
3
|
+
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { ScrollView, TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import MapView, { Circle, Marker, PROVIDER_GOOGLE } from 'react-native-maps';
|
|
7
6
|
import { check, RESULTS } from 'react-native-permissions';
|
|
7
|
+
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
|
8
8
|
import { openPromptEnableLocation } from '../../utils/Setting/Location';
|
|
9
9
|
|
|
10
|
+
import { FullLoading } from '../../commons';
|
|
10
11
|
import BottomButtonView from '../../commons/BottomButtonView';
|
|
11
12
|
import SearchBarLocation from '../../commons/SearchLocation';
|
|
12
13
|
import RowLocation from '../../commons/SearchLocation/RowLocation';
|
|
13
14
|
import Text from '../../commons/Text';
|
|
14
|
-
import { FullLoading } from '../../commons';
|
|
15
15
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
16
16
|
import {
|
|
17
17
|
GEOLOCATION_ERROR,
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
OpenSetting,
|
|
20
20
|
} from '../../utils/Permission/common';
|
|
21
21
|
|
|
22
|
-
import styles from './SelectAddressStyles';
|
|
23
22
|
import { API, Colors, SCConfig } from '../../configs';
|
|
24
|
-
import { axiosGet } from '../../utils/Apis/axios';
|
|
25
|
-
import Routes from '../../utils/Route';
|
|
26
23
|
import {
|
|
27
24
|
AccessibilityLabel,
|
|
28
|
-
MAP_INITIAL_REGION,
|
|
29
25
|
EOH_LOCATION,
|
|
26
|
+
MAP_INITIAL_REGION,
|
|
30
27
|
} from '../../configs/Constants';
|
|
28
|
+
import { axiosGet } from '../../utils/Apis/axios';
|
|
29
|
+
import Routes from '../../utils/Route';
|
|
30
|
+
import styles from './SelectAddressStyles';
|
|
31
31
|
|
|
32
32
|
navigator.geolocation = require('@react-native-community/geolocation');
|
|
33
33
|
|
|
@@ -210,7 +210,11 @@ const SelectAddress = memo(({ route }) => {
|
|
|
210
210
|
style={styles.button}
|
|
211
211
|
accessibilityLabel={AccessibilityLabel.BUTTON_CHOOSE_ON_MAP}
|
|
212
212
|
>
|
|
213
|
-
<IconOutline
|
|
213
|
+
<IconOutline
|
|
214
|
+
name="environment"
|
|
215
|
+
size={27}
|
|
216
|
+
color={Colors.Primary}
|
|
217
|
+
/>
|
|
214
218
|
<Text type="Body" color={Colors.Gray9} style={styles.text} bold>
|
|
215
219
|
{t('choose_on_map')}
|
|
216
220
|
</Text>
|
|
@@ -248,7 +252,7 @@ const SelectAddress = memo(({ route }) => {
|
|
|
248
252
|
}}
|
|
249
253
|
tracksViewChanges={false}
|
|
250
254
|
>
|
|
251
|
-
<IconOutline name="
|
|
255
|
+
<IconOutline name="environment" size={27} color={Colors.Blue10} />
|
|
252
256
|
</Marker>
|
|
253
257
|
</>
|
|
254
258
|
)}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React, { memo } from 'react';
|
|
2
|
-
import { View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
1
|
import { IconOutline } from '@ant-design/icons-react-native';
|
|
4
2
|
import { useNavigation } from '@react-navigation/native';
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
5
5
|
|
|
6
6
|
import Text from '../../../../../commons/Text';
|
|
7
7
|
import { Colors, Constants } from '../../../../../configs';
|
|
8
|
-
import Route from '../../../../../utils/Route';
|
|
9
8
|
import { useConfigGlobalState } from '../../../../../iot/states';
|
|
9
|
+
import Route from '../../../../../utils/Route';
|
|
10
10
|
|
|
11
11
|
const width_item = (Constants.width - 48) / 2;
|
|
12
12
|
|
|
@@ -25,7 +25,7 @@ const Item = memo(({ id, svgMain, title, measure, des, color, waterType }) => {
|
|
|
25
25
|
<TouchableOpacity onPress={goToDetail} style={styles.buttonInfo}>
|
|
26
26
|
<IconOutline
|
|
27
27
|
style={styles.row}
|
|
28
|
-
name="
|
|
28
|
+
name="info-circle"
|
|
29
29
|
size={20}
|
|
30
30
|
color={Colors.Black}
|
|
31
31
|
/>
|