Recyclerlistview: How can we work with dynamic height?

Created on 17 Jan 2018  路  8Comments  路  Source: Flipkart/recyclerlistview

If I have a component that some times shows just 1 line of text (short name) and some times 2 or 3 lines?

Most helpful comment

@naqvitalha
the forceNonDeterministicRendering={true} never helped me.
I have a chat app, there is dynamic height for any messages item.

All 8 comments

forceNonDeterministicRendering={true} will do that. And over the last couple of release it has become very fast, nothing to lose really. Once you do this the values given by your layout provider are considered as estimates.

Since the functionality is already present I'll be closing this.

when using forceNonDeterministicRendering={true} with RecyclerListView it gives error "You are setting the style '{top : ...}' as a prop. you should nest it in a style object.

@AnandKuhar web or react-native? If web are you prioritizing .web.js files?

Or RNW?

React Native

@naqvitalha
the forceNonDeterministicRendering={true} never helped me.
I have a chat app, there is dynamic height for any messages item.

Any update about this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VilleKokkarinen picture VilleKokkarinen  路  6Comments

sm2017 picture sm2017  路  5Comments

nehacurefit picture nehacurefit  路  4Comments

h-asadollahi picture h-asadollahi  路  8Comments

ErHarinderSingh picture ErHarinderSingh  路  6Comments