diff --git a/Libraries/Text/Text/RCTTextView.m b/Libraries/Text/Text/RCTTextView.m index a139243b8ad329..51e7a43fd4a172 100644 --- a/Libraries/Text/Text/RCTTextView.m +++ b/Libraries/Text/Text/RCTTextView.m @@ -527,7 +527,7 @@ - (void)copy:(id)sender NSData *rtf = [attributedText dataFromRange:NSMakeRange(0, attributedText.length) documentAttributes:@{NSDocumentTypeDocumentAttribute: NSRTFDTextDocumentType} error:nil]; -#if TARGET_OS_IPHONE // TODO(macOS GH#774) +#if TARGET_OS_IPHONE // [TODO(macOS GH#774) NSMutableDictionary *item = [NSMutableDictionary new]; // TODO(macOS GH#774) if (rtf) { @@ -538,13 +538,13 @@ - (void)copy:(id)sender UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.items = @[item]; -#elif TARGET_OS_OSX // TODO(macOS GH#774) +#elif TARGET_OS_OSX [_textView copy:sender]; NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; [pasteboard clearContents]; - [pasteboard writeObjects:[NSArray arrayWithObjects:attributedText.string, rtf, nil]]; -#endif // TODO(macOS GH#774) + [pasteboard setData:rtf forType:NSPasteboardTypeRTFD]; +#endif // ]TODO(macOS GH#774) } @end diff --git a/packages/rn-tester/js/examples/Text/TextExample.ios.js b/packages/rn-tester/js/examples/Text/TextExample.ios.js index d8bc3a4b4a17c9..e6c446ec6ccce2 100644 --- a/packages/rn-tester/js/examples/Text/TextExample.ios.js +++ b/packages/rn-tester/js/examples/Text/TextExample.ios.js @@ -722,14 +722,15 @@ exports.examples = [ This text is - not selectable yet{' '} - focusable with a visible + not selectable yet + focusable with a visible focus ring This text is selectable{' '} - and focusable with a - visible focus ring + and + focusable with a visible + focus ring