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:
parent
0b6ace990e
commit
99f3f10fe7
2 changed files with 60 additions and 24 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue