Animated.Event not working attached to onLayout with useNativeDriver enabled
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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