@eohjsc/react-native-smart-city 0.7.3-rc18 → 0.7.3-rc19
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 +1 -1
- package/src/navigations/EmergencyContactsStack.js +2 -0
- package/src/navigations/UnitStack.js +12 -4
- package/src/screens/AQIGuide/index.js +0 -2
- package/src/screens/UVIndexGuide/index.js +2 -4
- package/src/utils/I18n/translations/en.js +2 -0
- package/src/utils/I18n/translations/vi.js +2 -1
package/package.json
CHANGED
|
@@ -186,6 +186,8 @@ export const UnitStack = memo((props) => {
|
|
|
186
186
|
borderBottomWidth: Device.isIOS === 'android' ? 1 : 0,
|
|
187
187
|
borderColor: Colors.Gray4,
|
|
188
188
|
},
|
|
189
|
+
headerTintColor: Colors.Black,
|
|
190
|
+
headerBackTitleVisible: false,
|
|
189
191
|
}}
|
|
190
192
|
>
|
|
191
193
|
<Stack.Screen
|
|
@@ -285,22 +287,28 @@ export const UnitStack = memo((props) => {
|
|
|
285
287
|
name={Route.UVIndexGuide}
|
|
286
288
|
component={UVIndexGuide}
|
|
287
289
|
options={{
|
|
288
|
-
|
|
290
|
+
headerTitle: t('uv_index_guide'),
|
|
289
291
|
}}
|
|
290
292
|
/>
|
|
291
293
|
<Stack.Screen
|
|
292
294
|
name={Route.TDSGuide}
|
|
293
295
|
component={TDSGuide}
|
|
294
296
|
options={{
|
|
295
|
-
|
|
297
|
+
headerTitle: t('tds_information'),
|
|
298
|
+
}}
|
|
299
|
+
/>
|
|
300
|
+
<Stack.Screen
|
|
301
|
+
name={Route.AQIGuide}
|
|
302
|
+
component={AQIGuide}
|
|
303
|
+
options={{
|
|
304
|
+
headerTitle: t('aqi_guide'),
|
|
296
305
|
}}
|
|
297
306
|
/>
|
|
298
|
-
<Stack.Screen name={Route.AQIGuide} component={AQIGuide} />
|
|
299
307
|
<Stack.Screen
|
|
300
308
|
name={Route.WaterQualityGuide}
|
|
301
309
|
component={WaterQualityGuide}
|
|
302
310
|
options={{
|
|
303
|
-
|
|
311
|
+
headerTitle: t('water_quality_guide'),
|
|
304
312
|
}}
|
|
305
313
|
/>
|
|
306
314
|
<Stack.Screen
|
|
@@ -4,7 +4,6 @@ import { getBottomSpace } from 'react-native-iphone-x-helper';
|
|
|
4
4
|
|
|
5
5
|
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
6
6
|
import { Colors, Theme } from '../../configs';
|
|
7
|
-
import useTitleHeader from '../../hooks/Common/useTitleHeader';
|
|
8
7
|
import { AccessibilityLabel } from '../../configs/Constants';
|
|
9
8
|
import Text from '../../commons/Text';
|
|
10
9
|
import SvgSmile from '../../../assets/images/Feeling/smile.svg';
|
|
@@ -16,7 +15,6 @@ import { useSCContextSelector } from '../../context';
|
|
|
16
15
|
|
|
17
16
|
const AQIGuide = memo(() => {
|
|
18
17
|
const t = useTranslations();
|
|
19
|
-
useTitleHeader(t('AQI Guide'));
|
|
20
18
|
const language = useSCContextSelector((state) => state.language);
|
|
21
19
|
const data = useMemo(
|
|
22
20
|
() => ({
|
|
@@ -2,16 +2,14 @@ import React, { memo, useMemo } from 'react';
|
|
|
2
2
|
import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
3
3
|
import { getStatusBarHeight } from 'react-native-iphone-x-helper';
|
|
4
4
|
|
|
5
|
-
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
6
|
-
import { Colors, Theme } from '../../configs';
|
|
7
5
|
import Text from '../../commons/Text';
|
|
6
|
+
import { Colors, Theme } from '../../configs';
|
|
8
7
|
import { AccessibilityLabel } from '../../configs/Constants';
|
|
9
8
|
import { useSCContextSelector } from '../../context';
|
|
10
|
-
import
|
|
9
|
+
import { useTranslations } from '../../hooks/Common/useTranslations';
|
|
11
10
|
|
|
12
11
|
const UVIndexGuide = memo(() => {
|
|
13
12
|
const t = useTranslations();
|
|
14
|
-
useTitleHeader(t('UV Index Guide'));
|
|
15
13
|
const language = useSCContextSelector((state) => state.language);
|
|
16
14
|
|
|
17
15
|
const data = useMemo(
|
|
@@ -238,6 +238,8 @@ export default {
|
|
|
238
238
|
'Overall Water quality is based on below those conditions',
|
|
239
239
|
water_quality_guide: 'Water Quality Guide',
|
|
240
240
|
clo_guide: 'Chlorine Residual Guide',
|
|
241
|
+
aqi_guide: 'AQI Guide',
|
|
242
|
+
uv_index_guide: 'UV Index Guide',
|
|
241
243
|
what_is_clo: 'What is Chlorine residual?',
|
|
242
244
|
text_what_clo:
|
|
243
245
|
'Residual chlorine is the low level amount of chlorine remaining in the water after a certain period of ' +
|
|
@@ -197,7 +197,8 @@ export default {
|
|
|
197
197
|
text_name: 'Tên',
|
|
198
198
|
left_menu_notifications: 'Thông báo',
|
|
199
199
|
text_settings: 'Cài đặt',
|
|
200
|
-
|
|
200
|
+
aqi_guide: 'Chỉ số AQI',
|
|
201
|
+
uv_index_guide: 'Chỉ số UV',
|
|
201
202
|
'What is AQI?': 'Chỉ số AQI là gì?',
|
|
202
203
|
text_what_aqi:
|
|
203
204
|
'AQI là các chữ cái viết tắt của “Air Quality Index” – chỉ số chất lượng không khí. Chỉ số này được sử dụng để ' +
|