Skip to content

Conversation

@cipolleschi
Copy link
Contributor

@cipolleschi cipolleschi commented Jan 14, 2025

Summary:

Enabling useInsertionEffectsForAnimations was causing a regression where <Pressable> components becomes unresponsive. This happens when the <Pressable>'s position is controlled by a <ScrollView> offset and it is animated with nativeDriver.

Changelog:

[General][Changed] - Disable useInsertionEffectsForAnimations

Test Plan:

Tested on RNTester, using the API > Animated > Pressability with Native Driver example

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 14, 2025
@cipolleschi cipolleschi changed the base branch from main to 0.77-stable January 14, 2025 14:51
@cipolleschi cipolleschi changed the title cipolleschi/fix pressable in scrollview [Local] Disable useInsertionEffectsForAnimations Jan 14, 2025
@cipolleschi cipolleschi marked this pull request as ready for review January 14, 2025 14:53
@robhogan
Copy link
Contributor

robhogan commented Jan 15, 2025

FYI - The corresponding commit to main has landed as c799aa0 - I'm going to cherry-pick that for consistency, rather than merge this.

@robhogan
Copy link
Contributor

Picked as 2013bad

@robhogan robhogan closed this Jan 15, 2025
@robhogan robhogan deleted the cipolleschi/fix-pressable-in-scrollview branch January 16, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants