@eohjsc/react-native-smart-city 0.2.52 → 0.2.56

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.2.52",
4
+ "version": "0.2.56",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet, View } from 'react-native';
3
- import Modal from 'react-native-modal';
4
3
 
4
+ import ModalCustom from '../../commons/Modal/ModalCustom';
5
5
  import Text from '../../commons/Text';
6
6
  import ViewButtonBottom from '../ViewButtonBottom';
7
7
  import { Colors, Device } from '../../configs';
@@ -24,7 +24,7 @@ const AlertAction = ({
24
24
  animatedStyle,
25
25
  }) => {
26
26
  return (
27
- <Modal
27
+ <ModalCustom
28
28
  isVisible={visible}
29
29
  onBackButtonPress={hideModal}
30
30
  onBackdropPress={hideModal}
@@ -58,7 +58,7 @@ const AlertAction = ({
58
58
  />
59
59
  </View>
60
60
  </Animated.View>
61
- </Modal>
61
+ </ModalCustom>
62
62
  );
63
63
  };
64
64
 
@@ -95,7 +95,6 @@ const ListSmartAccount = ({ route }) => {
95
95
  },
96
96
  [navigate, unitId]
97
97
  );
98
-
99
98
  return (
100
99
  <View style={styles.wrap}>
101
100
  <WrapHeaderScrollable
@@ -116,7 +115,7 @@ const ListSmartAccount = ({ route }) => {
116
115
  })}
117
116
  </View>
118
117
  <AlertAction
119
- visible={stateAlertRemove.visible && lockShowing}
118
+ visible={stateAlertRemove.visible && !lockShowing}
120
119
  hideModal={hideAlertAction}
121
120
  title={stateAlertRemove.title}
122
121
  message={stateAlertRemove.message}
@@ -131,7 +130,7 @@ const ListSmartAccount = ({ route }) => {
131
130
  listMenuItem={listMenuItem}
132
131
  childRef={childRef}
133
132
  onItemClick={onItemClick}
134
- onHide={releaseLockShowing}
133
+ hideComplete={releaseLockShowing}
135
134
  />
136
135
  </WrapHeaderScrollable>
137
136
  </View>
@@ -26,7 +26,7 @@ export default StyleSheet.create({
26
26
  },
27
27
  wrapText: {
28
28
  flexDirection: 'row',
29
- alignItems: 'space-arou',
29
+ alignItems: 'space-around',
30
30
  },
31
31
  icon: {
32
32
  width: 48,
@@ -43,7 +43,12 @@ const UvIndex = memo(({ summaryDetail }) => {
43
43
  />
44
44
  <View style={styles.boxHealth}>
45
45
  <IconOutline name="alert" size={20} style={styles.iconMargin} />
46
- <Text semibold color={Colors.Gray9} size={16}>
46
+ <Text
47
+ semibold
48
+ color={Colors.Gray9}
49
+ type="H4"
50
+ style={styles.textTitle}
51
+ >
47
52
  {t('Protection advices:')}
48
53
  </Text>
49
54
  </View>
@@ -56,7 +61,7 @@ const UvIndex = memo(({ summaryDetail }) => {
56
61
  { backgroundColor: summaryDetail.uv_color },
57
62
  ]}
58
63
  />
59
- <Text color={Colors.Gray7} size={14}>
64
+ <Text color={Colors.Gray7} type="Body">
60
65
  {item}
61
66
  </Text>
62
67
  </View>
@@ -119,4 +124,7 @@ const styles = StyleSheet.create({
119
124
  iconMargin: {
120
125
  marginRight: 8,
121
126
  },
127
+ textTitle: {
128
+ lineHeight: 28,
129
+ },
122
130
  });