gopi Nath
gopi Nath

Reputation: 23

How to prefill the input text of the react native gifted chat and send it

i want to prefill the text in the input text field of the react native gifted chat. Below is my code.

render() {
return (
  <GiftedChat
    messages={this.state.messages}
    onSend={Fire.shared.send}
    user={this.user}
    renderUsernameOnMessage={true}
    checkedGamerTag = {this.props.checkedGamerTag}
  />
);

}

Upvotes: 2

Views: 1201

Answers (1)

Rocky
Rocky

Reputation: 3235

You can specify a text prop for this, can found detail on link.

Upvotes: 2

Related Questions