Update Reanimated (#6126)

* Update Reanimated

* Fix types

* Fix Reanimated value access warnings

* Fix types
This commit is contained in:
dan
2024-11-05 22:27:36 +00:00
committed by GitHub
parent b0c5a37daa
commit 84fb1b7f97
10 changed files with 292 additions and 218 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import React, {isValidElement, memo, startTransition, useRef} from 'react'
import {FlatListProps, StyleSheet, View, ViewProps} from 'react-native'
import {ReanimatedScrollEvent} from 'react-native-reanimated/lib/typescript/reanimated2/hook/commonTypes'
import {ReanimatedScrollEvent} from 'react-native-reanimated/lib/typescript/hook/commonTypes'
import {batchedUpdates} from '#/lib/batchedUpdates'
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
+3 -1
View File
@@ -70,7 +70,9 @@ export const FlatList_INTERNAL = React.forwardRef(function FlatListImpl<ItemT>(
contentOffset,
desktopFixedHeight,
...props
}: React.PropsWithChildren<FlatListProps<ItemT> & AddedProps>,
}: React.PropsWithChildren<
Omit<FlatListProps<ItemT>, 'CellRendererComponent'> & AddedProps
>,
ref: React.Ref<FlatList<ItemT>>,
) {
const pal = usePalette('default')