add prop to ListImpl for disabling content-visibility style (#4236)

* add prop to `ListImpl` for `content-visibility` style

* change to `disableContentVisibility`

* lint

* tweaks

* Keep the fix more general

* Clarify ambiguity

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
Hailey 2024-05-29 20:09:24 -07:00 committed by GitHub
parent eb6f44853d
commit 9628070e52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 4 deletions

View file

@ -328,6 +328,9 @@ export function MessagesList({
renderItem={renderItem}
keyExtractor={keyExtractor}
containWeb={true}
// Prevents wrong position in Firefox when sending a message
// as well as scroll getting stuck on Chome when scrolling upwards.
disableContentVisibility={true}
disableVirtualization={true}
style={animatedListStyle}
// The extra two items account for the header and the footer components