react-native-dropdown-picker-plus
Version:
A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
27 lines (23 loc) • 544 B
JavaScript
import React, { memo } from 'react';
import { Text, View } from 'react-native';
function ListEmpty({
loading,
message,
ActivityIndicatorComponent,
listMessageContainerStyle,
listMessageTextStyle,
allowFontScaling = false,
}) {
return (
<View style={listMessageContainerStyle}>
{loading ? (
<ActivityIndicatorComponent />
) : (
<Text style={listMessageTextStyle} allowFontScaling={allowFontScaling}>
{message}
</Text>
)}
</View>
);
}
export default memo(ListEmpty);