Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reanimated 3.16.5] App crashed when passing ref created by useAnimatedRef #947

Open
2 tasks done
quocluongha opened this issue Dec 11, 2024 · 1 comment
Open
2 tasks done

Comments

@quocluongha
Copy link

quocluongha commented Dec 11, 2024

Environment

  • react-native: 0.76.5

  • react-native-pager-view: 6.6.1

  • react-native-reanimated: 3.16.5

  • iOS

  • Android

Description

This issue only happen when I use react-native-reanimated version 3.16.5. The app crashed when I pass the ref created by useAnimatedRef to AnimatedPagerView (created by Animated.createAnimatedComponent(PagerView) ).

Reproducible Demo

Please reproduce using the snippet below

const AnimatedPagerView = Animated.createAnimatedComponent(PagerView)

export default function PagerViewExample() {
    const ref = useAnimatedRef()

    return <AnimatedPagerView ref={ref} />
}
Image
@quocluongha quocluongha changed the title [Reanimated 3.16.5] App crashed when passing ref with useAnimatedRef [Reanimated 3.16.5] App crashed when passing ref created by useAnimatedRef Dec 11, 2024
@Jacob-Finn
Copy link

I believe this to be a reanimated issue. I was able to resolve this issue by downgrading react-native-reanimated to 3.16.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants