change .value = to .set()
This commit is contained in:
@@ -1288,11 +1288,11 @@ function useScrollTracker({
|
||||
}) => {
|
||||
'worklet'
|
||||
if (typeof newContentHeight === 'number')
|
||||
contentHeight.value = Math.floor(newContentHeight)
|
||||
contentHeight.value.set(Math.floor(newContentHeight))
|
||||
if (typeof newContentOffset === 'number')
|
||||
contentOffset.value = Math.floor(newContentOffset)
|
||||
contentOffset.value.set(Math.floor(newContentOffset))
|
||||
if (typeof newScrollViewHeight === 'number')
|
||||
scrollViewHeight.value = Math.floor(newScrollViewHeight)
|
||||
scrollViewHeight.set(Math.floor(newScrollViewHeight))
|
||||
},
|
||||
[contentHeight, contentOffset, scrollViewHeight],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user