react-native-macos/Libraries
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
..
ART Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
ActionSheetIOS Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
Alert Re-land "[RN] TM: attempt to integrate with internal codegen infra"" 2019-06-11 17:11:58 -07:00
Animated Optimize native animated connection queue handling (#25256) 2019-06-13 08:45:54 -07:00
AppState Feature to listen on window focus events (#25039) 2019-06-05 16:05:34 -07:00
BatchedBridge Add a lint rule to disallow Haste imports (#25058) 2019-05-30 07:45:16 -07:00
Blob Replace more Haste imports with path-based imports (#25001) 2019-05-23 00:51:31 -07:00
BugReporting add spec for RedBox (#24922) 2019-05-20 18:05:55 -07:00
CameraRoll Move CameraRoll JS to FB internal 2019-05-23 07:06:21 -07:00
Color Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Components Revert D15780039: [RN Codegen] Add JS view config for View 2019-06-17 11:29:45 -07:00
Core Add react-refresh as a dependency 2019-06-17 10:59:05 -07:00
DeprecatedPropTypes New Accessibility states API. (#24608) 2019-05-23 05:37:33 -07:00
EventEmitter Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
Experimental Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
HeapCapture Replace more Haste imports with path-based imports (#25001) 2019-05-23 00:51:31 -07:00
Image Move ImageEditor JS files to FB internal 2019-06-11 00:29:27 -07:00
Inspector add spec for I18nManager (#24908) 2019-05-31 19:56:37 -07:00
Interaction Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
JSInspector Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
LayoutAnimation Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
Linking Replace more Haste imports with path-based imports (#25001) 2019-05-23 00:51:31 -07:00
LinkingIOS Resolve Promise to YES for Linking.openURL (#24955) 2019-05-20 01:32:53 -07:00
Lists Deploy Flow v0.100 to xplat/js 2019-06-03 23:03:41 -07:00
Modal add spec for I18nManager (#24908) 2019-05-31 19:56:37 -07:00
NativeAnimation Fix connection of animated nodes and scroll offset with useNativeDriver. (#24177) 2019-06-06 04:52:19 -07:00
NativeModules/specs Reland "[react-native][PR] [TM] Add spec for DevSettings" 2019-05-31 10:58:02 -07:00
Network Use fetch as a polyfill 2019-06-06 11:34:11 -07:00
NewAppScreen - Fix missing whitespace in debug instructions (#25122) 2019-06-03 06:51:09 -07:00
Performance Replace more Haste imports with path-based imports (#25001) 2019-05-23 00:51:31 -07:00
PermissionsAndroid Reland "[RN] TM Spec: relax PermissionsAndroid enforcement" 2019-05-31 10:58:02 -07:00
PushNotificationIOS Codemod $Enum<...> to $Keys<...> in xplat/fbcode 2019-05-16 14:20:29 -07:00
ReactNative Don't throw when accessing view config 2019-06-12 16:18:36 -07:00
ReactPrivate ReactPrivate, an explicit interface between the renderer and RN (#24782) 2019-05-20 07:16:57 -07:00
Renderer Fix comment 2019-06-07 11:38:31 -07:00
Sample @allow-large-files Deploy v0.101.0 to xplat 2019-06-11 15:22:23 -07:00
Settings Add a lint rule to disallow Haste imports (#25058) 2019-05-30 07:45:16 -07:00
Share Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
Storage Remove RocksDB 2019-05-13 11:43:49 -07:00
StyleSheet Fix: RefreshControl in FlatList makes borderWidth not working (#24411) 2019-06-07 02:47:47 -07:00
SurfaceBackedComponent Fix object initialization 2019-05-10 10:10:27 -07:00
SurfaceHostingComponent Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Text allow custom attributedTextWithBaseTextAttributes in RCTBaseTextShadowView subclasses (#25283) 2019-06-18 02:10:15 -07:00
TurboModule Disable legacy native modules in bridgeless mode 2019-06-17 15:13:49 -07:00
Types Use generated view config for iOS Switch 2019-06-10 03:34:13 -07:00
Utilities Revert D15780039: [RN Codegen] Add JS view config for View 2019-06-17 11:29:45 -07:00
Vibration Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
WebSocket Delete fishhook 2019-06-12 06:19:32 -07:00
Wrapper Update the license for RCTWrapperExample (#24037) 2019-03-19 09:19:19 -07:00
YellowBox fix shouldComponentUpdate in YellowBox (#25097) 2019-05-31 00:50:54 -07:00
polyfills workaround T43930203 where originalConsole.assert doesn't properly check the condition and always fires 2019-05-03 12:27:21 -07:00
react-native Move ViewPagerAndroid JS code to FB Internal 2019-06-11 00:29:27 -07:00
vendor Remove Map/Set from RN Open Source 2019-06-07 06:39:28 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Use standard version of Promise.prototype.finally 2019-03-27 20:48:45 -07:00
UTFSequence.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00
promiseRejectionIsError.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00