software-mansion / software-mansion/react-native-enriched-html
[Feature request] onPaste event
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 66
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 11
Description
Is your feature request related to a problem? Please describe.
In my app, if a user pastes a very large piece of text, we convert this into a text file and attach it instead of sending it as text in the composer.
Describe the solution you'd like
Support for an onPaste event for text like we do for onPasteImages. Ideally, we have one even with text and images props so we only need one callback.
Describe alternatives you've considered
Right now, we have a very hacky solution where we check the value inside onChangeHtml. I'm not sure if it even works, it was generated by Claude. 😅
Additional context
None at the moment.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing onPasteImages callback and the onChangeHtml API in the React Native editor. Define the text and image data exposed through the paste callback, then verify that large text pastes invoke it and that the existing image-paste behavior remains covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100