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

Implement writingDirection property for Text for fabric

Open jonthysell opened this issue 1 year ago • 1 comments

Implement the writingDirection property for the fabric implementation of Text.

This property was available in RNW Paper via TextViewManager.

See https://reactnative.dev/docs/text-style-props#writingdirection-ios for details.

jonthysell avatar Apr 29 '24 21:04 jonthysell

There is a bug in react native side, once it is fixed and changes integrated, we can implement this change

PR for the bug fix

Changes required for RNW: In the below file react-native-windows\vnext\Microsoft.ReactNative\Fabric\platform\react\renderer\textlayoutmanager\TextLayoutManager.cpp

Inside the GetTextLayout(), set SetReadingDirection by using the value of baseWritingDirection from textAttributes.

vineethkuttan avatar May 10 '25 03:05 vineethkuttan