app/components/message_thread/index.js
// When component mounts, retrieve the messages and cards
When component mounts, retrieve the messages and cards
When component mounts retrieve the messages and cards
componentDidMount() {
        const {setParams} = this.props.navigation;
        setParams({senderCard: this.props.pair.senderCard});
        this.props.getMessages();
        this.props.getCards();
        this.retrieveMessages();
    }
componentDidMount ( ) { const { setParams } = this . props . navigation ; setParams ( { senderCard : this . props . pair . senderCard } ) ; this . props . getMessages ( ) ; this . props . getCards ( ) ; this . retrieveMessages ( ) ; }
When component mounts, retrieve the messages and cards
When component mounts retrieve the messages and cards
// set label of sender button top right