react-native
react-native copied to clipboard
Allow implementing custom text parents as extensions of RCTText
Summary:
There's no way to implement:
- Custom text parent. Both Fabric and old renderers explicitely disallow this.
- Extension of RCTText, e.g. as an Android native module.
My use case: I needed to slightly override native behavior of ReactTextView, but conditions in React Native renderers make it impossible without monkey patching React Native.
Changelog:
[INTERNAL] [ADDED] - Option to extend native RCTText
Test Plan:
Create native module extending ReactTextViewManager
with NAME starting with RCTTextExtension-
.