A few containWeb List nits (#3877)

* use getters for returned values

* pass ref

* add log to `onScroll` in tester

* improve expect error
This commit is contained in:
Hailey 2024-05-06 13:45:14 -07:00 committed by GitHub
parent 0b6ace990e
commit 99f3f10fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 60 additions and 24 deletions

View file

@ -22,9 +22,15 @@ export function ListContained() {
<>
<View style={{width: '100%', height: 300}}>
<ScrollProvider
onScroll={() => {
onScroll={e => {
'worklet'
console.log('onScroll')
console.log(
JSON.stringify({
contentOffset: e.contentOffset,
layoutMeasurement: e.layoutMeasurement,
contentSize: e.contentSize,
}),
)
}}>
<List
data={data}