zachary
zachary

Reputation: 118

Can I render from Top when using FlashList inverted?

Can I render from Top when using FlatList inverted?

I was able to render from the top of an inverted list usinh a Flatlist for the method above. The Flashlist contentContainerStyle does not seem to support flexbox.

Upvotes: 0

Views: 672

Answers (1)

Hari Karthyk
Hari Karthyk

Reputation: 21

Try this solution

 <View style={this.props.alignTop ? styles.containerAlignTop : styles.container}>
   // Flashlist
 </View>

Style Sheet

  containerAlignTop: {
    flexDirection: 'row',
    alignItems: 'flex-start',
  }

Upvotes: 0

Related Questions