@codeleap/mobile 3.2.10 → 3.2.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "3.2.10",
3
+ "version": "3.2.11",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -73,6 +73,7 @@ const ListCP = forwardRef<KeyboardAwareFlatList, FlatListProps>(
73
73
  refreshControlProps = {},
74
74
  loading = false,
75
75
  fakeEmpty = loading,
76
+ contentContainerStyle,
76
77
  ...props
77
78
  } = flatListProps
78
79
 
@@ -86,8 +87,6 @@ const ListCP = forwardRef<KeyboardAwareFlatList, FlatListProps>(
86
87
  // const isEmpty = !props.data || !props.data.length
87
88
  const separator = props?.separators && <RenderSeparator separatorStyles={variantStyles.separator}/>
88
89
 
89
- const refreshStyles = StyleSheet.flatten([variantStyles.refreshControl, styles.refreshControl])
90
-
91
90
  const renderItem = useCallback((data: ListRenderItemInfo<any>) => {
92
91
  if (!props?.renderItem) return null
93
92
  const listLength = props?.data?.length || 0
@@ -118,9 +117,11 @@ const ListCP = forwardRef<KeyboardAwareFlatList, FlatListProps>(
118
117
  variantStyles.wrapper,
119
118
  style,
120
119
  isEmpty && variantStyles['wrapper:empty'],
120
+
121
121
  ]}
122
122
  contentContainerStyle={[
123
123
  variantStyles.content,
124
+ contentContainerStyle,
124
125
  isEmpty && variantStyles['content:empty'],
125
126
  ]}
126
127
  // @ts-expect-error React's refs suck