@codeleap/mobile 3.2.10 → 3.2.12
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
|
@@ -75,7 +75,7 @@ export const Autocomplete = <T extends string|number = string, Multi extends boo
|
|
|
75
75
|
filterItems = defaultFilterFunction,
|
|
76
76
|
searchInputProps: searchProps = {},
|
|
77
77
|
onItemPressed = () => {},
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
...listProps
|
|
80
80
|
} = allProps
|
|
81
81
|
|
|
@@ -200,7 +200,7 @@ export const Autocomplete = <T extends string|number = string, Multi extends boo
|
|
|
200
200
|
|
|
201
201
|
const Search = searchComponent
|
|
202
202
|
|
|
203
|
-
return <View style={[variantStyles.wrapper
|
|
203
|
+
return <View style={[variantStyles.wrapper]}>
|
|
204
204
|
<Search
|
|
205
205
|
placeholder={placeholder}
|
|
206
206
|
debugName={debugName}
|
|
@@ -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
|