app/components/message_thread/index.js
// TODO: Add logic for sending a message
Add logic for sending a message
Add logic for sending a message
onSend(messages = []) {
        this.setState(previousState => (
            {
                messages: GiftedChat.append(previousState.messages, messages),
            }
        ),
        this.sendMessage)
    }
onSend ( messages = [ ] ) { this . setState ( previousState => ( { messages : GiftedChat . append ( previousState . messages , messages ) , } ) , this . sendMessage ) }
TODO: Add logic for sending a message
TODO : Add logic for sending a message