Skip to content

Commit 936141f

Browse files
Nick Lefevermeta-codesync[bot]
authored andcommitted
Fix flipped accessiblityState diffing (#54574)
Summary: Pull Request resolved: #54574 Props 2.0 diffing had the old and new accessibilityState flipped in the HostPlatformViewProps implementation, which resulted in the disabled state output being flipped on change. Changelog: [Internal] Reviewed By: shwanton Differential Revision: D87293652 fbshipit-source-id: c3fc358f355a3465a59a7cd43b4b7ca79ca16bbb
1 parent d314e5f commit 936141f

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view

1 file changed

+1
-1
lines changed

packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
936936

937937
if (accessibilityState != oldProps->accessibilityState) {
938938
updateAccessibilityStateProp(
939-
result, oldProps->accessibilityState, accessibilityState);
939+
result, accessibilityState, oldProps->accessibilityState);
940940
}
941941

942942
if (accessibilityLabel != oldProps->accessibilityLabel) {

0 commit comments

Comments
 (0)