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

Animated component reset props of fabric component #6937

Open
pigeonmal opened this issue Jan 26, 2025 · 0 comments
Open

Animated component reset props of fabric component #6937

pigeonmal opened this issue Jan 26, 2025 · 0 comments
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@pigeonmal
Copy link

Description

I'm having a really weird bug. When an Animated component is mounted when you change a prop of a fabric component, it refreshes all the props. But when I remove Animated.View only the changed prop is refreshed, in my video example it's paused={paused} (state). I don't understand how react-native-reanimated can affect components outside of it.

rec-screen.webm

I'm creating my own video player library, but I tested with other libraries I think it's not me.

Steps to reproduce

  1. Create a basic fabric native component (I generated it with bob)
  2. Add log when a prop is changed
  3. Try change prop of the component with and without Animated.View

Snack or a link to a repository

https://github.com/pigeonmal/react-native-video-vlc/tree/main/example

Reanimated version

3.16.7

React Native version

0.77.0

Platforms

Android

JavaScript runtime

None

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Android emulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Repro provided A reproduction with a snippet of code, snack or repo is provided labels Jan 26, 2025
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 Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

1 participant