@momo-kits/foundation 0.81.3 → 0.81.5

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.
@@ -2,11 +2,13 @@ import React, {FC, ReactElement, useContext} from 'react';
2
2
  import {FlatList, FlatListProps, View} from 'react-native';
3
3
  import Item from './Item';
4
4
  import {GridContext} from './index';
5
+ import styles from './styles';
5
6
 
6
7
  const ItemList: FC<FlatListProps<any>> = ({
7
8
  renderItem,
8
9
  numColumns = 1,
9
10
  style,
11
+ contentContainerStyle,
10
12
  ...props
11
13
  }) => {
12
14
  const {gutterSize} = useContext(GridContext);
@@ -43,21 +45,8 @@ const ItemList: FC<FlatListProps<any>> = ({
43
45
  renderItem={_renderItem}
44
46
  horizontal={false}
45
47
  ItemSeparatorComponent={() => <View style={{height: gutterSize}} />}
46
- style={[
47
- style,
48
- {
49
- marginTop: undefined,
50
- marginBottom: undefined,
51
- marginLeft: undefined,
52
- marginRight: undefined,
53
- paddingTop: undefined,
54
- paddingBottom: undefined,
55
- paddingLeft: undefined,
56
- paddingRight: undefined,
57
- padding: undefined,
58
- margin: undefined,
59
- },
60
- ]}
48
+ style={[style, styles.protectedStyle]}
49
+ contentContainerStyle={[contentContainerStyle, styles.protectedStyle]}
61
50
  />
62
51
  );
63
52
  };
package/Layout/Screen.tsx CHANGED
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  Animated,
3
- Image,
4
3
  KeyboardAvoidingView,
5
4
  NativeScrollEvent,
6
5
  NativeSyntheticEvent,
@@ -28,6 +27,7 @@ import {
28
27
  import Navigation from '../Application/Navigation';
29
28
  import styles from './styles';
30
29
  import {AnimatedHeader, NavigationOptions} from '../Application/types';
30
+ import {Image} from '../Image';
31
31
 
32
32
  export interface ScreenProps extends ViewProps {
33
33
  children: React.ReactNode;
@@ -259,6 +259,7 @@ const Screen = forwardRef(
259
259
  uri: headerBackground,
260
260
  }}
261
261
  style={styles.extendedHeader}
262
+ loading={false}
262
263
  />
263
264
  <View style={{height: heightHeader}} />
264
265
  </>
package/Layout/styles.ts CHANGED
@@ -77,4 +77,20 @@ export default StyleSheet.create({
77
77
  right: 0,
78
78
  borderRadius: Spacing.M,
79
79
  },
80
+ protectedStyle: {
81
+ marginTop: undefined,
82
+ marginBottom: undefined,
83
+ marginLeft: undefined,
84
+ marginRight: undefined,
85
+ paddingTop: undefined,
86
+ paddingBottom: undefined,
87
+ paddingLeft: undefined,
88
+ paddingRight: undefined,
89
+ padding: undefined,
90
+ margin: undefined,
91
+ marginHorizontal: undefined,
92
+ marginVertical: undefined,
93
+ paddingHorizontal: undefined,
94
+ paddingVertical: undefined,
95
+ },
80
96
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.81.3",
3
+ "version": "0.81.5",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {