Skip to main content

EmptyView

Content

Empty view with title and description. Used mostly in conjunction with FlatListWrapper and SectionListWrapper as ListEmptyComponent (used as default property in both of them).

Params

NameTypeRequiredDefault valueDescription
titlestringTrue-Title message
descriptionstringTrue-Description message

Usage example

return (
<EmptyView title={"You have no items yet"} description={"All your items will be displayed here"} />
);
FlatListWrapper.defaultProps = {
keyExtractor: defaultKeyIdExtractor,
ListEmptyComponent: <EmptyView title={localization.empty.noData} description={localization.empty.checkThisPageLater} />,
onEndReachedThreshold: 1,
};