react-native-macos/Libraries/Text/BaseText
Vojtech Novak 23df1b09a8 allow custom attributedTextWithBaseTextAttributes in RCTBaseTextShadowView subclasses (#25283)
Summary:
This is similar to https://github.com/facebook/react-native/pull/24995 but for iOS.
Motivation: when building a custom Text or TextInput (eg with rich text support), one needs custom text processing logic (turning the JS text value to a `NSAttributedString`).

RCTBaseTextShadowView contains `- (NSAttributedString *)attributedTextWithBaseTextAttributes:(nullable RCTTextAttributes *)baseTextAttributes;`

853c667eb5/Libraries/Text/BaseText/RCTBaseTextShadowView.m (L78)

This method, given `self.reactSubviews` creates and returns an instance of [NSMutableAttributedString](https://developer.apple.com/documentation/foundation/nsmutableattributedstring?language=objc). It's currently possible to override this method in subclasses, but the original implementation reads and writes two cache fields which are private. This PR just changes the access modifiers so that subclasses of `RCTBaseTextShadowView` can also access the caching fields.

## Changelog

Not needed I guess.
Pull Request resolved: https://github.com/facebook/react-native/pull/25283

Test Plan: This will work just the same - works locally, CI should pass.

Differential Revision: D15873741

Pulled By: cpojer

fbshipit-source-id: dd26a4241f2ac6c0870b6c302939e2f3b0ecc8ff
2019-06-18 02:10:15 -07:00
..
RCTBaseTextShadowView.h allow custom attributedTextWithBaseTextAttributes in RCTBaseTextShadowView subclasses (#25283) 2019-06-18 02:10:15 -07:00
RCTBaseTextShadowView.m allow custom attributedTextWithBaseTextAttributes in RCTBaseTextShadowView subclasses (#25283) 2019-06-18 02:10:15 -07:00
RCTBaseTextViewManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTBaseTextViewManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00