This patch release fixes Android crashes and freezes when Reanimated changes views inside an event, for example during a screen transition, a crash from a race between the UI and JS threads, two Android build failures, and bugs in worklet event handlers and the scrollViewOffset prop.
What's Changed
- stop reading React's shadow node wrapper on the UI thread by @tjzel in #11464 (cherry-pick #11743)
- read Android codegen headers from the library's Gradle build directory by @nihar777 in #11526 (cherry-pick #11744)
- build with USE_ANIMATION_BACKEND on Android by @pawicao in #11555 (cherry-pick #11745)
- add missing files to
sideEffectsby @retyui in #11172 (cherry-pick #11746) - keep event registrations for each prop across handler updates by @pawicao in #11215 (cherry-pick #11747)
- register a worklet handler that replaces a plain callback by @pawicao in #11579 (cherry-pick #11748)
- track scrollViewOffset with any ref or no ref by @YevheniiKotyrlo and @pawicao in #10867 (cherry-pick #11749)
- follow scrollViewOffset added or removed after mount by @pawicao and @YevheniiKotyrlo in #11722 (cherry-pick #11750)
- do the layout work of an event before the next draw, not inside the event by @pawicao in #11314 (cherry-pick #11751)
Full Changelog: 4.8.0...4.8.1