File tree 2 files changed +3
-2
lines changed
src/components/InvertedFlatList
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,6 @@ class BaseInvertedFlatList extends Component {
136
136
// Native platforms do not need to measure items and work fine without this.
137
137
// Web requires that items be measured or else crazy things happen when scrolling.
138
138
getItemLayout = { this . props . shouldMeasureItems ? this . getItemLayout : undefined }
139
- // We keep this property very low so that chat switching remains fast
140
- maxToRenderPerBatch = { 1 }
141
139
windowSize = { 15 }
142
140
143
141
// Commenting the line below as it breaks the unread indicator test
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ function InvertedFlatList(props) {
119
119
shouldMeasureItems
120
120
contentContainerStyle = { StyleSheet . compose ( contentContainerStyle , styles . justifyContentEnd ) }
121
121
onScroll = { handleScroll }
122
+ // We need to keep batch size to one to workaround a bug in react-native-web.
123
+ // This can be removed once https://github.com/Expensify/App/pull/24482 is merged.
124
+ maxToRenderPerBatch = { 1 }
122
125
/>
123
126
) ;
124
127
}
You can’t perform that action at this time.
0 commit comments