@eohjsc/react-native-smart-city 0.3.95 → 0.3.96
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/commons/BottomButtonView/index.js +3 -1
- package/src/commons/ButtonPopup/index.js +1 -0
- package/src/commons/SelectGateway/index.js +1 -0
- package/src/commons/SelectGateway/styles.js +3 -0
- package/src/screens/AddNewGateway/ScanModbusQR.js +4 -0
- package/src/screens/ScanChipQR/components/InvalidQRCode/index.js +4 -0
- package/src/utils/I18n/translations/en.js +12 -6
- package/src/utils/I18n/translations/vi.js +12 -6
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ const BottomButtonView = memo(
|
|
|
23
23
|
accessibilityLabelPrefix = '',
|
|
24
24
|
disableBackgroundMainButton = false,
|
|
25
25
|
disableBackgroundSecondButton = false,
|
|
26
|
+
disableKeyBoardAnimated = false,
|
|
26
27
|
}) => {
|
|
27
28
|
const transY = useKeyboardAnimated();
|
|
28
29
|
const [keyboardAnim] = useState(new Animated.Value(0));
|
|
@@ -42,7 +43,8 @@ const BottomButtonView = memo(
|
|
|
42
43
|
typeMain === 'CardShadow'
|
|
43
44
|
? styleCustom.container1
|
|
44
45
|
: styleCustom.container,
|
|
45
|
-
|
|
46
|
+
// eslint-disable-next-line react-native/no-inline-styles
|
|
47
|
+
{ bottom: disableKeyBoardAnimated ? 0.1 : keyboardAnim },
|
|
46
48
|
rowButton && styleCustom.horizontalContainer,
|
|
47
49
|
style,
|
|
48
50
|
]}
|
|
@@ -84,6 +84,7 @@ const ScanModbusQR = memo(({ route }) => {
|
|
|
84
84
|
onLeftClick={handleCancel}
|
|
85
85
|
rightTitle={t('ok')}
|
|
86
86
|
onRightClick={setHidePopupGuide}
|
|
87
|
+
wrapStyle={styles.wrapViewButton}
|
|
87
88
|
/>
|
|
88
89
|
</View>
|
|
89
90
|
</ModalCustom>
|
|
@@ -119,6 +120,9 @@ const styles = StyleSheet.create({
|
|
|
119
120
|
txtCenter: {
|
|
120
121
|
textAlign: 'center',
|
|
121
122
|
},
|
|
123
|
+
wrapViewButton: {
|
|
124
|
+
position: 'relative',
|
|
125
|
+
},
|
|
122
126
|
});
|
|
123
127
|
|
|
124
128
|
export default ScanModbusQR;
|
|
@@ -19,6 +19,7 @@ const InvalidQRCode = ({ isInvalidQrCode, goBack, onRetry }) => {
|
|
|
19
19
|
onLeftClick={goBack}
|
|
20
20
|
rightTitle={t('retry')}
|
|
21
21
|
onRightClick={onRetry}
|
|
22
|
+
wrapStyle={styles.wrapViewButton}
|
|
22
23
|
/>
|
|
23
24
|
</BottomSheet>
|
|
24
25
|
);
|
|
@@ -30,4 +31,7 @@ const styles = StyleSheet.create({
|
|
|
30
31
|
warningContainer: {
|
|
31
32
|
paddingHorizontal: 16,
|
|
32
33
|
},
|
|
34
|
+
wrapViewButton: {
|
|
35
|
+
position: 'relative',
|
|
36
|
+
},
|
|
33
37
|
});
|
|
@@ -1398,12 +1398,18 @@ export default {
|
|
|
1398
1398
|
reach_max_members_per_unit: 'You have reached the maximum number of members',
|
|
1399
1399
|
reach_max_chips_per_unit: 'You have reached the maximum number of gateway',
|
|
1400
1400
|
reach_max_configs_per_unit: 'You have reached the maximum number of tags',
|
|
1401
|
-
no_permission_plug_and_play_modbus:
|
|
1402
|
-
|
|
1403
|
-
|
|
1401
|
+
no_permission_plug_and_play_modbus:
|
|
1402
|
+
'Add modbus is currently not available on your Subscription. Please upgrade your plan for a better experience!',
|
|
1403
|
+
no_permission_plug_and_play_zigbee:
|
|
1404
|
+
'Add zigbee is currently not available on your Subscription. Please upgrade your plan for a better experience!',
|
|
1405
|
+
no_permission_plug_and_play_wifi:
|
|
1406
|
+
'Add wifi is currently not available on your Subscription. Please upgrade your plan for a better experience!',
|
|
1404
1407
|
no_permission_plug_and_play_gateway:
|
|
1405
|
-
|
|
1408
|
+
'Add gateway is currently not available on your Subscription. Please upgrade your plan for a better experience!',
|
|
1409
|
+
no_permission_view_action_log:
|
|
1410
|
+
// eslint-disable-next-line max-len
|
|
1411
|
+
'View action log is currently not available on your Subscription. Please upgrade your plan for a better experience!',
|
|
1406
1412
|
no_permission_smart_script_for_multi_unit:
|
|
1407
|
-
|
|
1408
|
-
|
|
1413
|
+
// eslint-disable-next-line max-len
|
|
1414
|
+
'Smart script for Multi Unit is currently not available on your Subscription. Please upgrade your plan for a better experience!',
|
|
1409
1415
|
};
|
|
@@ -1404,11 +1404,17 @@ export default {
|
|
|
1404
1404
|
reach_max_members_per_unit: 'Đã đạt đến số lượng tối đa thành viên',
|
|
1405
1405
|
reach_max_chips_per_unit: 'Đã đạt đến số lượng tối đa chip',
|
|
1406
1406
|
reach_max_configs_per_unit: 'Đã đạt đến số lượng tối đa thông số',
|
|
1407
|
-
no_permission_plug_and_play_modbus:
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1407
|
+
no_permission_plug_and_play_modbus:
|
|
1408
|
+
'Kết nối tự động modbus hiện tại chưa hỗ trợ trên gói của bạn. Vui lòng nâng cấp gói để có trải nghiệm tốt hơn!',
|
|
1409
|
+
no_permission_plug_and_play_zigbee:
|
|
1410
|
+
'Kết nối tự động zigbee hiện tại chưa hỗ trợ trên gói của bạn. Vui lòng nâng cấp gói để có trải nghiệm tốt hơn!',
|
|
1411
|
+
no_permission_plug_and_play_wifi:
|
|
1412
|
+
'Kết nối tự động wifi hiện tại chưa hỗ trợ trên gói của bạn. Vui lòng nâng cấp gói để có trải nghiệm tốt hơn!',
|
|
1413
|
+
no_permission_plug_and_play_gateway:
|
|
1414
|
+
'Kết nối tự động gateway hiện tại chưa hỗ trợ trên gói của bạn. Vui lòng nâng cấp gói để có trải nghiệm tốt hơn!',
|
|
1415
|
+
no_permission_view_action_log:
|
|
1416
|
+
'Xem lịch sử hoạt động hiện tại chưa hỗ trợ trên gói của bạn. Vui lòng nâng cấp gói để có trải nghiệm tốt hơn!',
|
|
1411
1417
|
no_permission_smart_script_for_multi_unit:
|
|
1412
|
-
|
|
1413
|
-
|
|
1418
|
+
// eslint-disable-next-line max-len
|
|
1419
|
+
'Kịch bản thông minh cho nhiều địa điểm hiện tại chưa hỗ trợ trên gói của bạn. Vui lòng nâng cấp gói để có trải nghiệm tốt hơn!',
|
|
1414
1420
|
};
|