flatlist listemptycomponent center code example
Example: flatlist listemptycomponent center
<FlatList
data={params}
renderItem={renderItem}
keyExtractor={(item) => item.unique.toString()}
ListEmptyComponent={RenderEmpty}
onEndReached={()=>(<LoadingSpinner/>)}
contentContainerStyle={{ flexGrow: 1}}
/>
contentContainerStyle={{ flexGrow: 1}} this will work