react / react/react-native

Animated.Event not working attached to onLayout with useNativeDriver enabled

Open
#43,430 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API: Animated Issue: Author Provided Repro Newer Patch Available
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

Description

Animated event with enabled useNativeDriver is not working when attached to onLayout on iOS.
No issue on Android.

Steps to reproduce

https://snack.expo.dev/6IY1zZKolp6xDjCFMRObH

React Native Version

0.73.0

Affected Platforms

Runtime - iOS

Output of npx react-native info
NA
Stacktrace or Logs
NA
Reproducer

https://snack.expo.dev/6IY1zZKolp6xDjCFMRObH

Screenshots and Videos

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Expo Snack and reproduce the onLayout behavior on iOS with useNativeDriver enabled, then compare it with Android. Trace the React Native Animated event path for this case; done means the attached event works consistently on iOS as it does on Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.