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

animatedProps with disabled not updating #6578

Open
believer opened this issue Oct 7, 2024 · 0 comments
Open

animatedProps with disabled not updating #6578

believer opened this issue Oct 7, 2024 · 0 comments
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@believer
Copy link

believer commented Oct 7, 2024

Description

Using animatedProps to update a disabled prop never updates the value. Logging inside useAnimatedProps displays the correct values, but the changes don't seem to update the component.

  1. Initially, the first button is displayed as disabled.
  2. We can click the second and third button, which updates the styling correctly, but the disabled state remains on the first button (after clicking on third, I try to click “first” again in the video).
rn-animated-props-disabled.mp4

Steps to reproduce

  1. Use animatedProps to set disabled on a <Pressable> button that's been augmented using Animated.createAnimatedComponent.
  2. The disabled value never updates, even though the value changes inside the useAnimatedProps hook.

Snack or a link to a repository

https://github.com/believer/rn-animated-props-disabled

Reanimated version

3.10.1

React Native version

0.74.5

Platforms

iOS

JavaScript runtime

None

Workflow

Expo Go

Architecture

None

Build type

None

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

1 participant