Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextInput] Could we insert image into it? #17467

Closed
just4fun opened this issue Jan 6, 2018 · 7 comments
Closed

[TextInput] Could we insert image into it? #17467

just4fun opened this issue Jan 6, 2018 · 7 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@just4fun
Copy link

just4fun commented Jan 6, 2018

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.

@react-native-bot
Copy link
Collaborator

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey @just4fun, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to ContributeWhat to Expect from Maintainers

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Jan 6, 2018
@just4fun
Copy link
Author

just4fun commented 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.

@just4fun
Copy link
Author

just4fun commented Jan 6, 2018

I try to nest Image within TextInput, but the image is invisible with big cursor beside it, not sure whether it's a bug.

@just4fun
Copy link
Author

just4fun commented Jan 6, 2018

Anyway, I open a new issue with template, #17468.

@EgidioCaprino
Copy link

We need that too.

@EgidioCaprino
Copy link

@just4fun did you find a solution?

@facebook facebook locked as resolved and limited conversation to collaborators Jan 6, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jan 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants