Skip to content

Properly enable Pressable after disabled prop reset - #58799

Closed
bigcupcoffee wants to merge 1 commit into
react:mainfrom
bigcupcoffee:fix/android-set-enabled
Closed

bigcupcoffee wants to merge 1 commit into
react:mainfrom
bigcupcoffee:fix/android-set-enabled

Conversation

@bigcupcoffee

@bigcupcoffee bigcupcoffee commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

JSI drops undefined keys, so reseting disabled from true to undefined on Touchables/Pressables never runs setEnabled(true)

There is props diffing feature flag that fixes this, which is off by default

Also added safety check against explicit null & reset on recycling

Fixes #56777 and supersedes #58795

Changelog:

[ANDROID] [FIXED] - Properly enable Pressable after disabled prop resets from true

Test Plan:

Added BaseViewManagerTest as well as videos of testing it on Pressable:

before.mov
after.mov

@meta-cla meta-cla 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 Oct 1, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 1, 2026
@meta-codesync

meta-codesync Bot commented Oct 1, 2026

Copy link
Copy Markdown

@zeyap has imported this pull request. If you are a Meta employee, you can view this in D122872380.

@meta-codesync meta-codesync Bot closed this in 357b699 Oct 2, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 2, 2026
@meta-codesync

meta-codesync Bot commented Oct 2, 2026

Copy link
Copy Markdown

@zeyap merged this pull request in 357b699.

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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][0.84.1] TouchableOpacity only receives onPress on text area after disabled-to-enabled transition

1 participant