@eohjsc/react-native-smart-city 0.4.88 → 0.4.89

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.4.88",
4
+ "version": "0.4.89",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -7,8 +7,6 @@ import {
7
7
  View,
8
8
  } from 'react-native';
9
9
  import { ActivityIndicator } from '@ant-design/react-native';
10
- import { isIphoneX } from 'react-native-iphone-x-helper';
11
-
12
10
  import { Colors, Theme } from '../../configs';
13
11
  import HeaderAni, { heightHeader } from '../../commons/HeaderAni';
14
12
  import Text from '../../commons/Text';
@@ -83,7 +81,7 @@ const WrapHeaderScrollable = ({
83
81
  />
84
82
  }
85
83
  contentInset={{
86
- top: heightHeader - (isIphoneX() ? 32 : 0),
84
+ top: heightHeader,
87
85
  }}
88
86
  contentOffset={{
89
87
  y: -heightHeader,
@@ -116,8 +114,8 @@ const styles = StyleSheet.create({
116
114
  scrollView: {
117
115
  flex: 1,
118
116
  paddingTop: Platform.select({
119
- ios: 15,
120
- android: heightHeader + 16,
117
+ ios: 0,
118
+ android: heightHeader,
121
119
  }),
122
120
  },
123
121
  contentContainerStyle: {
@@ -16,6 +16,7 @@ import { useTranslations } from '../../../hooks/Common/useTranslations';
16
16
  import { axiosPost } from '../../../utils/Apis/axios';
17
17
  import Routes from '../../../utils/Route';
18
18
  import styles from '../styles/NotificationItemStyles';
19
+ import Notify from '../../../../assets/images/Notify.svg';
19
20
 
20
21
  const NotificationItem = memo(({ item }) => {
21
22
  const t = useTranslations();
@@ -442,7 +443,7 @@ const NotificationItem = memo(({ item }) => {
442
443
  },
443
444
  });
444
445
  },
445
- iconContent: <Image source={logo} style={styles.logo} />,
446
+ iconContent: <Notify />,
446
447
  };
447
448
  default:
448
449
  return null;
@@ -498,7 +499,7 @@ const NotificationItem = memo(({ item }) => {
498
499
  {sub_content}
499
500
  </Text>
500
501
  )}
501
- <Text color={Colors.Gray7} type="Label" style={[styles.time]}>
502
+ <Text color={Colors.Gray7} type="Label">
502
503
  {timeFormat}
503
504
  </Text>
504
505
  </View>
@@ -99,7 +99,6 @@ const Notification = memo(() => {
99
99
  onLoadMore={handleOnLoadMore}
100
100
  onRefresh={onRefresh}
101
101
  disableLoadMore={page >= maxPageNotification}
102
- styleScrollView={styles.styleScrollView}
103
102
  >
104
103
  {notifications.map((item, index) => (
105
104
  <NotificationItem item={item} key={index} />
@@ -3,9 +3,9 @@ import { Colors } from '../../../configs';
3
3
 
4
4
  export default StyleSheet.create({
5
5
  container: {
6
- paddingHorizontal: 16,
7
- paddingTop: 16,
8
- paddingBottom: 16,
6
+ paddingHorizontal: 10,
7
+ paddingTop: 10,
8
+ paddingBottom: 10,
9
9
  flexDirection: 'row',
10
10
  backgroundColor: Colors.White,
11
11
  },
@@ -21,35 +21,22 @@ export default StyleSheet.create({
21
21
  justifyContent: 'center',
22
22
  alignItems: 'center',
23
23
  },
24
+ iconNotification: {
25
+ width: '46%',
26
+ },
24
27
  viewRight: {
25
28
  flexShrink: 1,
26
29
  },
27
- time: {
28
- marginTop: 12,
29
- },
30
- iconNotification: {
31
- width: '46%',
30
+ textNotification: {
31
+ lineHeight: 23,
32
32
  },
33
33
  backgroundSummer: {
34
34
  width: '46%',
35
35
  color: Colors.Summer,
36
36
  },
37
- border: {
38
- color: Colors.Primary,
39
- paddingTop: 8,
40
- paddingBottom: 8,
41
- paddingHorizontal: 16,
42
- borderColor: Colors.Primary,
43
- borderWidth: 1,
44
- borderRadius: 50,
45
- width: 120,
46
- },
47
37
  logo: {
48
38
  width: 20,
49
39
  height: 20,
50
40
  resizeMode: 'contain',
51
41
  },
52
- textNotification: {
53
- lineHeight: 23,
54
- },
55
42
  });
@@ -1,7 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
3
  import { Colors } from '../../../configs';
4
- import { getStatusBarHeight } from '../../../configs/Constants';
5
4
 
6
5
  export default StyleSheet.create({
7
6
  wrap: {
@@ -17,7 +16,4 @@ export default StyleSheet.create({
17
16
  iconPlus: {
18
17
  marginRight: 22,
19
18
  },
20
- styleScrollView: {
21
- marginTop: getStatusBarHeight(),
22
- },
23
19
  });