You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 357b699
Browse filesBrowse the repository at this point in the historyBrowse files
Properly enable Pressable after disabled prop reset (#58799)
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`
Pull Request resolved: #58799
Test Plan:
Added BaseViewManagerTest as well as videos of testing it on Pressable:
https://github.com/user-attachments/assets/e9a7dcd2-46d5-4cdc-88a3-728bff22e76bhttps://github.com/user-attachments/assets/043150ae-64f2-47c9-b13c-abfec5b61747
Reviewed By: javache
Differential Revision: D122872380
Pulled By: zeyap
fbshipit-source-id: f3f1cad378f36f006bbb6c7f3f2e4f9aa8e61541
0 commit comments