change .value = to .set()

This commit is contained in:
Samuel Newman
2024-11-12 20:41:17 +00:00
parent 427f3a8bd7
commit b29f7b64ac
19 changed files with 153 additions and 125 deletions
+3 -3
View File
@@ -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],
)