From f004cd39bc4b632006085cbcf61df52bc5d25242 Mon Sep 17 00:00:00 2001 From: Abhijeet Jha <74712637+iamAbhi-916@users.noreply.github.com> Date: Tue, 15 Jul 2025 04:41:55 -0700 Subject: [PATCH] Text: Fix isSelectable prop macro conversion (#52599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: for IOS and React native windows we can observe that the macro conversion is incorrect in ParagraphProps particularly for selectable prop. current conversion ``` case ([]() constexpr -> RawPropsPropNameHash { return facebook::react::fnv1a("isSelectable"); }()): fromRawValue(context, value, isSelectable, defaults.isSelectable); return; ``` issue is that isSelectable is not the raw prop therefore JS to native flow for the prop is not correct . (Note : this works for Android as ReactProp(name = "selectable"): https://github.com/facebook/react-native/blob/bbc1e121c71d14803d29a931f642bf8ea6ee2023/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.kt#L97-L100 ) fix ``` RAW_SET_PROP_SWITCH_CASE(isSelectable, selectable) ``` Current implementation selectable prop is not working for IOS and React native windows as the macro conversion is incorrect in ParagraphProps particularly for selectable prop. ## Changelog: Updated ParagraphProps macro conversion for isSelectable , keeping it backward compatible.