patches/expo-paste-input+0.1.15.patch.md
expo-paste-input observes UITextView.textDidChangeNotification and treats any
NSTextAttachment in the text view's attributedText as a pasted image. When
it can't find a real image payload on an attachment, it falls back to
image(forBounds:) and, failing that, to a drawHierarchy screenshot of the
text view at the attachment's glyph rect.
iOS Dictation inserts its own NSTextAttachment (the shimmer/cursor indicator)
into the text view during dictation. Those attachments don't carry real image
data, so the fallbacks would fire — emitting a zoomed-in screenshot of the
composer as if the user had pasted an image at the end of dictation.
This patch:
image(forBounds:) and renderTextAttachment fallbacks in
extractMediaPayload so the library only accepts attachments carrying a real
payload (fileWrapper, contents, or image).