@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 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.3.95",
4
+ "version": "0.3.96",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -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
- { bottom: keyboardAnim },
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
  ]}
@@ -61,6 +61,7 @@ const ButtonPopup = ({
61
61
  typeSecondary={typeSecondary}
62
62
  accessibilityLabelPrefix={AccessibilityLabel.PREFIX.BUTTON_POPUP}
63
63
  semiboldSecond={semiboldSecond}
64
+ disableKeyBoardAnimated
64
65
  />
65
66
  {thirdTitle && (
66
67
  <BottomButtonView
@@ -140,6 +140,7 @@ const SelectGateway = ({
140
140
  rightTitle={t('ok')}
141
141
  onRightClick={handleButtonModalOk}
142
142
  styleButton={styles.bottomButton}
143
+ wrapStyle={styles.wrapViewButton}
143
144
  />
144
145
  </View>
145
146
  </ModalCustom>
@@ -73,4 +73,7 @@ export default StyleSheet.create({
73
73
  bottomButton: {
74
74
  paddingVertical: 11,
75
75
  },
76
+ wrapViewButton: {
77
+ position: 'relative',
78
+ },
76
79
  });
@@ -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: "You don't have permission to add modbus",
1402
- no_permission_plug_and_play_zigbee: "You don't have permission to add zigbee",
1403
- no_permission_plug_and_play_wifi: "You don't have permission to add wifi",
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
- "You don't have permission to add gateway",
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
- "You don't have permission to access feature Smart script for Multi Unit",
1408
- no_permission_view_action_log: "You don't have permission to view action log",
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: 'Không có quyền kết nối tự động modbus',
1408
- no_permission_plug_and_play_zigbee: 'Không có quyền kết nối tự động zigbee',
1409
- no_permission_plug_and_play_wifi: 'Không có quyền kết nối tự động wifi',
1410
- no_permission_plug_and_play_gateway: 'Không có quyền kết nối tự động gateway',
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
- 'Không quyền truy cập tính năng Kịch bản thông minh liên quan đến nhiều địa điểm',
1413
- no_permission_view_action_log: 'Không quyền xem lịch sử hoạt dộng',
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
  };