Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

flatlist extends out of the screen

$
0
0

I have a screen that looks like this:

return (<SafeAreaView style={styles.safeAreaViewContainer}><View style={styles.container}>       ....<View style={styles.listContainer}>          {data && showFlatList !== null && (<UsersFoundList              data={data}            />          )}</View></View></SafeAreaView>  );};  listContainer: {    justifyContent: 'center',    //marginBottom: 50,  },

I call a FlatList here from the UserFoundList component:

  return (<View><FlatList        data={data.user}        horizontal={false}        scrollEnabled        renderItem={({ item }) => (<UserFoundEntry user={item} onSendRequest={onSendRequest} />        )}        keyExtractor={(item) => item?.id?.toString()}        ListEmptyComponent={NoUsersFoundTextBox}      /></View>  );};

But the list overlaps with the safeAreaView at the bottom. While scrolling, it should appear from behind/under the SafeAreaView and not form top of it.enter image description here


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>