secullum-react-native-ui 4.16.2-beta.0 → 4.16.2-beta.10
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.
|
@@ -24,7 +24,7 @@ export interface DropDownProperties {
|
|
|
24
24
|
icon?: string | undefined;
|
|
25
25
|
arrowColor?: string | undefined;
|
|
26
26
|
searchable?: SearchableProps;
|
|
27
|
-
virtualized?: true | VirtualizedProps
|
|
27
|
+
virtualized?: true | VirtualizedProps;
|
|
28
28
|
}
|
|
29
29
|
export interface SearchableProps {
|
|
30
30
|
placeHolder: string;
|
|
@@ -298,8 +298,8 @@ class DropDown extends React.Component {
|
|
|
298
298
|
if (virtualized == null) {
|
|
299
299
|
return (React.createElement(react_native_1.FlatList, { data: filteredItems, initialNumToRender: filteredItems.length, keyExtractor: item => item.value.toString(), renderItem: renderItem }));
|
|
300
300
|
}
|
|
301
|
-
const virtualizedProps = virtualized ===
|
|
302
|
-
? Object.assign({}, DEFAULT_VIRTUALIZED) : Object.assign(
|
|
301
|
+
const virtualizedProps = typeof virtualized === 'object'
|
|
302
|
+
? Object.assign(Object.assign({}, DEFAULT_VIRTUALIZED), virtualized) : Object.assign({}, DEFAULT_VIRTUALIZED);
|
|
303
303
|
return (React.createElement(react_native_1.VirtualizedList, { getItem: (_, index) => filteredItems[index], getItemCount: () => filteredItems.length, keyExtractor: item => item.value.toString(), renderItem: renderItem, initialNumToRender: virtualizedProps.initialNumToRender, maxToRenderPerBatch: virtualizedProps.maxToRenderPerBatch, windowSize: virtualizedProps.windowSize }));
|
|
304
304
|
};
|
|
305
305
|
}
|