question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[TextInput] Could we insert image into it?

See original GitHub issue

Hey RN team,

I’m developing an app and I need to insert custom image into TextInput.

In addition, I need to use delete button to remove the images and also move cursor around them like normal text.

I noticed that in normal OC development we could use NSAttributedString to achieve.

Is there any way in React Native? Or it’s a missing feature for now?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
just4funcommented, Jan 6, 2018

I know this is not a bug, so I removed the template, sorry.

However, I didn’t get any answers on Stack Overflow (https://stackoverflow.com/questions/48033885/how-to-insert-custom-emoji-small-pictures-into-textinput-of-react-native) so I want to have a try here.

Insert custom Image into TextInput is a common case in iOS development, with using React Native, I want to know whether there is any way (or hacky way) to archive it.

0reactions
EgidioCaprinocommented, Aug 20, 2018

@just4fun did you find a solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native - How to add an image to TextInput?
I would like to add an image to TextInput . Like Android's Spannable and IOS's NSAttributedString <Text> <Text> Test </ Text> <Image source ......
Read more >
Image Icon in React Native TextInput
Image in TextInput. While working with React Native TextInput we need to assist the user in what to insert in TextInput. · To...
Read more >
Is there a way to embed images into text inputs? : r/reactnative
In text input ? No. You can make a view look like a text input and put an image and actual text input...
Read more >
Image inside TextInput Example - Expo Snack
Example of Image inside React Native Text Input.
Read more >
how to add custom image icon inside input textbox ... - YouTube
put custom icon images inside the input textbox element html using css styles.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found