react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Implement selectable property for Text for fabric

Open jonthysell opened this issue 1 year ago • 4 comments

Implement the selectable property for the fabric implementation of Text.

This property was available in RNW Paper via TextViewManager.

See https://reactnative.dev/docs/text#selectable for details.

jonthysell avatar Apr 29 '24 21:04 jonthysell

This can be fixed when upstream react-native fixes their macro conversion of selectable prop from JS to native. Added PR for the same : Text: Fix selectable prop mapping (was isSelectable) for Fabric - ensure correct macro conversion by iamAbhi-916 · Pull Request #51187 · facebook/react-native

After teh above is merged and integrated to RNW , then we need to add pointer/touch handlers in ParagraphComponentView that, when selectable is true, allow the user to select text

iamAbhi-916 avatar May 08 '25 09:05 iamAbhi-916

This would be incredibly helpful to have!

austinhallock avatar Jun 03 '25 01:06 austinhallock

What does the roadmap for this look like now that https://github.com/facebook/react-native/pull/51187 was closed without merging?

austinhallock avatar Aug 04 '25 03:08 austinhallock

@austinhallock we created a new pull which was backward compatible and that got merged. ref : https://github.com/facebook/react-native/pull/52599.

Will be adding this support for react native windows in sometime !

iamAbhi-916 avatar Aug 04 '25 10:08 iamAbhi-916