Image load first then video when click

This commit is contained in:
aeroreyna
2022-03-30 22:40:49 -07:00
parent 564343b1ac
commit 01596a368d
4 changed files with 26 additions and 13 deletions

View File

@@ -72,7 +72,9 @@ let Profile = ({ navigation, route }) => {
keyExtractor={item => item._id || item.createdAt}
ListHeaderComponent={header}
refreshing={Posts.length === 0}
initialNumToRender={2}
initialNumToRender={3}
maxToRenderPerBatch={3}
removeClippedSubviews={true}
onRefresh={() => {
API.getPosts(route.params.profileid).then(setPosts);
}}