Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixed footer in react native with FlatList

Following this question on fixed footer with a ScrollView, I'm trying to implement a fixed footer on the screen with a FlatList. I have tried to use the answer provided by putting the flat list inside a view, but then none of the items are rendered. Does any one know how to implement a fixed footer with a flat list as the other main element of component?

like image 648
avriis Avatar asked Mar 11 '18 19:03

avriis


1 Answers

It is similar to the answer above, but I think this also works.

<View style={{flex: 1}}>
  <View style={{flex: 1}}>
    <FlatList/>
  </View>
  <View />
</View>
like image 107
박제영 Avatar answered Sep 28 '22 02:09

박제영