gorhom / react-native-sticky-item

An interactive sticky item inspired by Facebook Stories.
MIT License
888 stars 48 forks source link

getNode() on Flatlist is deprecated #21

Open hirbod opened 3 years ago

hirbod commented 3 years ago

Hi,

I just upgraded to Expo SDK 41 and this packages triggers:

FlatList: Calling getNode() on the ref on an Animated component is no longer necessary. You can now directly use the ref instead. This method will be removed in a future release.

This line triggers the issue: https://github.com/gorhom/react-native-sticky-item/blob/00e5e65c08a048b7a3f05a28cf175f91226bfa1b/src/StickyItemFlatList.tsx#L159

Would you be so kind to update this? It might break for older SDKs and versions though.

hirbod commented 3 years ago

And looks like you're also using an older, underlying version of "react-native-redash" which uses "interpolate()" instead of "interpolateNode()" which was introduced in reanimated-2.

William already fixed this https://github.com/wcandillon/react-native-redash/tree/master/src/v1

You might need also you fix the peers.

Bildschirmfoto 2021-05-02 um 01 42 13
hirbod commented 3 years ago

@gorhom Expo SDK 42 is around the corner, which will break on the current state. Any chance to receive an update?