(null);
const { targetRef } = useCollectionReachBottom({
collection,
containerRef: scrollRef,
});
const isScrollTop = useIsScrollTop(scrollRef);
useEffect(() => {
state.updateIsScrollTop(isScrollTop);
}, [isScrollTop]);
const listItems: ReactElement[] = keyedItems.map((keyedItem, index) => {
const { type: PickerListItem, props: pickerListItemProps } = renderItem(
keyedItem,
index,
);
return (
);
});
return (
{listItems.flatMap((child, index, { length }) => {
return (
{child}
{index !== length - 1 && (
)}
);
})}
);
}
export const PickerListContent = observer(_PickerListContent);