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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user