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 #6810

Open
quocluongha opened this issue Dec 12, 2024 · 2 comments
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@quocluongha
Copy link

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) ).

I don't know this issue related to Reanimated or PagerView so I also opened another issue in react-native-pager-view #947

Steps to reproduce

Please reproduce using the snippet below

const AnimatedPagerView = Animated.createAnimatedComponent(PagerView)

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

    return <AnimatedPagerView ref={ref} />
}

Snack or a link to a repository

https://github.com/quocluongha/rn-pager-view-with-reanimated

Reanimated version

3.16.5

React Native version

0.76.5

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided labels Dec 12, 2024
@rileysay
Copy link

Same here

@quocluongha
Copy link
Author

quocluongha commented Dec 22, 2024

The issue still persists in 3.16.6

Simulator Screenshot - iPhone 16 Pro Max - 2024-12-22 at 14 26 37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants