<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj" -->

---
title: Pasting images into TextInput should not be this hard —...
description: A React Native developer recounts building expo-paste-input, a native Expo module that adds image, GIF, and sticker paste support to the standard TextInput...
canonical: https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Pasting images into TextInput should not be this hard — Expo blog | daily.dev
og:description: A React Native developer recounts building expo-paste-input, a native Expo module that adds image, GIF, and sticker paste support to the standard TextInput...
og:url: https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj
og:image: https://api.daily.dev/og/posts/RimmOtqMJ.png
og:image:alt: Pasting images into TextInput should not be this hard — Expo blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Pasting images into TextInput should not be this hard — Expo blog

**[Expo Blog](https://daily.dev/sources/expo-blog)** · 9 min read · 5 upvotes · 2 comments

## Summary

A React Native developer recounts building expo-paste-input, a native Expo module that adds image, GIF, and sticker paste support to the standard TextInput component. After Mattermost's react-native-paste-input broke under React Native's New Architecture, the author chose to wrap the existing TextInput rather than build a custom editor, inspired by Fernando Rojo's write-up on v0's paste handling. The piece walks through iOS clipboard privacy prompts, Android's OnReceiveContentListener and fragmented paste paths, GIF and transparent PNG handling, and iOS 18 sticker support via NSAdaptiveImageGlyph, ending with the module's open-sourcing and outreach to the Bluesky team.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://expo.dev/blog/pasting-images-into-textinput-should-not-be-this-hard>

## Questions this post answers

### How can I add image and GIF paste support to a React Native TextInput without replacing it?

Use a thin wrapper component around the existing TextInput rather than building a custom editor. The expo-paste-input library's PasteInputWrapper observes native paste events and emits an onPaste callback with typed payloads such as {type: "images", uris: string[]} or {type: "text", value: string}, letting the app decide how to handle attachments while keeping the standard TextInput intact.

_daily.dev surfaces practical React Native patterns like wrapper-based paste handling for developers building chat or media apps._

### Why did react-native-paste-input from Mattermost break after migrating to React Native's New Architecture?

The library broke inconsistently after a New Architecture migration, with some functionality working on one platform but not the other and no single clear error. iOS could mostly be patched to keep working, but Android became increasingly difficult to maintain since the library wasn't actively evolving to support the new architecture's requirements, eventually costing more maintenance time than the feature was worth.

_Teams weighing React Native New Architecture migrations track library breakage reports like this on daily.dev._

### How do you handle iOS stickers pasted into a text input without inserting extra characters?

Watch for NSTextAttachment and, on iOS 18, NSAdaptiveImageGlyph objects in the pasteboard content, since stickers are often delivered as text attachments rather than standard clipboard image formats. The wrapper extracts the underlying image data, strips the unwanted attachment content from the text field, preserves cursor position, writes the image to temporary storage, and emits it as a normal image paste event, including animated stickers.

_Developers handling tricky iOS clipboard edge cases like sticker glyphs can find similar deep dives on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@seyoungcho** · 0 upvotes

> This is exactly the kind of open source React Native needs.

**@agustinbarrientos** · 0 upvotes

> Before the wrapper reaches production, I'd test iOS 18 stickers, an Android 12 keyboard paste, and a transparent PNG. Cursor position, animation, and alpha have to survive all three cases.

## Similar posts on daily.dev

- [5 react-native-enriched-html Use Cases](https://daily.dev/posts/5-react-native-enriched-html-use-cases-bsv9r59lf) · Software Mansion · 3 upvotes · 0 comments
- [Rich Content in Text Input in Jetpack Compose](https://daily.dev/posts/rich-content-in-text-input-in-jetpack-compose-nhibpvrt7) · ProAndroidDev · 0 upvotes · 0 comments
- [Making React Native actually native](https://daily.dev/posts/making-react-native-actually-native-bdan1xdzt) · Bytes by ui.dev · 2 upvotes · 0 comments
- [From React Web to Native in One Week](https://daily.dev/posts/from-react-web-to-native-in-one-week-zxr4npbt3) · Expo Blog · 62 upvotes · 3 comments
- [New Animation Backend, TextInput Selection Data, New Jest Preset Package · React Native](https://daily.dev/posts/new-animation-backend-textinput-selection-data-new-jest-preset-package-react-native-7cduozrz2) · React Native · 59 upvotes · 0 comments

---

Tags: [#android](https://daily.dev/tags/android), [#ios](https://daily.dev/tags/ios), [#react-native](https://daily.dev/tags/react-native)

[View this post on daily.dev](https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Pasting images into TextInput should not be this hard — Expo blog","url":"https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj"},"datePublished":"2026-08-28T12:39:39.925Z","dateModified":"2026-09-13T20:11:31.869Z","description":"A React Native developer recounts building expo-paste-input, a native Expo module that adds image, GIF, and sticker paste support to the standard TextInput...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e7b59977ec4decc9b4d3862f0003dfcd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e7b59977ec4decc9b4d3862f0003dfcd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Expo Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Expo Blog","logo":"https://media.daily.dev/image/upload/s--E7LK6L3y--/f_auto,q_auto/v1774179051/logos/expo-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/expo-blog"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"android,ios,react-native","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Expo Blog","item":"https://daily.dev/sources/expo-blog"},{"@type":"ListItem","position":3,"name":"Pasting images into TextInput should not be this hard — Expo blog"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj","comment":[{"@type":"Comment","text":"This is exactly the kind of open source React Native needs.","datePublished":"2026-09-07T14:50:03.017Z","url":"https://daily.dev/posts/RimmOtqMJ#c-beZb0xgVJ","author":{"@type":"Person","name":"SeyoungCho","url":"https://daily.dev/seyoungcho","image":"https://media.daily.dev/image/upload/s---QniJFEK--/f_auto/v1724901542/avatars/avatar_O3ucZSadxc0iLADSOH3rX"}},{"@type":"Comment","text":"Before the wrapper reaches production, I’d test iOS 18 stickers, an Android 12 keyboard paste, and a transparent PNG. Cursor position, animation, and alpha have to survive all three cases.","datePublished":"2026-08-31T23:47:50.092Z","url":"https://daily.dev/posts/RimmOtqMJ#c-FvvzMSXFG","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pasting-images-into-textinput-should-not-be-this-hard-expo-blog-rimmotqmj#faq","mainEntity":[{"@type":"Question","name":"How can I add image and GIF paste support to a React Native TextInput without replacing it?","acceptedAnswer":{"@type":"Answer","text":"Use a thin wrapper component around the existing TextInput rather than building a custom editor. The expo-paste-input library's PasteInputWrapper observes native paste events and emits an onPaste callback with typed payloads such as {type: \"images\", uris: string[]} or {type: \"text\", value: string}, letting the app decide how to handle attachments while keeping the standard TextInput intact. daily.dev surfaces practical React Native patterns like wrapper-based paste handling for developers building chat or media apps."}},{"@type":"Question","name":"Why did react-native-paste-input from Mattermost break after migrating to React Native's New Architecture?","acceptedAnswer":{"@type":"Answer","text":"The library broke inconsistently after a New Architecture migration, with some functionality working on one platform but not the other and no single clear error. iOS could mostly be patched to keep working, but Android became increasingly difficult to maintain since the library wasn't actively evolving to support the new architecture's requirements, eventually costing more maintenance time than the feature was worth. Teams weighing React Native New Architecture migrations track library breakage reports like this on daily.dev."}},{"@type":"Question","name":"How do you handle iOS stickers pasted into a text input without inserting extra characters?","acceptedAnswer":{"@type":"Answer","text":"Watch for NSTextAttachment and, on iOS 18, NSAdaptiveImageGlyph objects in the pasteboard content, since stickers are often delivered as text attachments rather than standard clipboard image formats. The wrapper extracts the underlying image data, strips the unwanted attachment content from the text field, preserves cursor position, writes the image to temporary storage, and emits it as a normal image paste event, including animated stickers. Developers handling tricky iOS clipboard edge cases like sticker glyphs can find similar deep dives on daily.dev."}}]}
```

