mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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 https://github.com/react/react-native/issues/56777 and supersedes https://github.com/react/react-native/issues/58795
## Changelog:
[ANDROID] [FIXED] - Properly enable Pressable after `disabled` prop resets from `true`
Pull Request resolved: https://github.com/react/react-native/pull/58799
Test Plan:
Added BaseViewManagerTest as well as videos of testing it on Pressable:
https://github.com/user-attachments/assets/e9a7dcd2-46d5-4cdc-88a3-728bff22e76b
https://github.com/user-attachments/assets/043150ae-64f2-47c9-b13c-abfec5b61747
Reviewed By: javache
Differential Revision: D122872380
Pulled By: zeyap
fbshipit-source-id: f3f1cad378f36f006bbb6c7f3f2e4f9aa8e61541
(cherry picked from commit 357b6998c4)