Skip to content

[Local] Disable useInsertionEffectsForAnimations - #48668

Closed
cipolleschi wants to merge 1 commit into
0.77-stablefrom
cipolleschi/fix-pressable-in-scrollview
Closed

[Local] Disable useInsertionEffectsForAnimations#48668
cipolleschi wants to merge 1 commit into
0.77-stablefrom
cipolleschi/fix-pressable-in-scrollview

Conversation

@cipolleschi

@cipolleschicipolleschi commented Jan 14, 2025

Copy link
Copy Markdown
Contributor

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-botfacebook-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-stableJanuary 14, 2025 14:51
@cipolleschicipolleschi changed the title cipolleschi/fix pressable in scrollview[Local] Disable useInsertionEffectsForAnimationsJan 14, 2025
@cipolleschi
cipolleschi marked this pull request as ready for review January 14, 2025 14:53
@robhogan

robhogan commented Jan 15, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Picked as 2013bad

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

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.p: FacebookPartner: FacebookPartnerPick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cipolleschi@robhogan@facebook-github-bot@react-native-bot