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

How make send button with icon? #535

Closed
lossen opened this issue Aug 10, 2017 · 2 comments
Closed

How make send button with icon? #535

lossen opened this issue Aug 10, 2017 · 2 comments

Comments

@lossen
Copy link

lossen commented Aug 10, 2017

Hello
How can I make send button with icon?

There is pull request #487 that resolve my problem, but its not merged yet :(

@varungupta85
Copy link

You can define a renderSend method and set it in the GiftedChat component as shown below

renderSend = (sendProps) => {
    if (sendProps.text.trim().length > 0) {
      return (
        <TouchableOpacity>
          <Image source={require('../../img/ic_send.png')} />
        </TouchableOpacity>
      );
    }
    return null;
  }

<GiftedChat renderSend={this.renderSend} />

This is just to give you an idea on how to set a custom icon for the send. You will probably need to add some styling and an onPress handler.

@cooperka
Copy link
Collaborator

@lossen you can do this now via #487 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants