react-native-gifted-chat icon indicating copy to clipboard operation
react-native-gifted-chat copied to clipboard

Requesting switch line code for quickReplyStyle and borderColor (L145, L146)

Open eggybot opened this issue 10 months ago • 2 comments

https://github.com/FaridSafi/react-native-gifted-chat/blob/081084a89c3a99c8b233823ccff9abe7e8d092c4/src/QuickReplies.tsx#L140-L150

As you can see above code, I cannot override the borderColor using the quickReplyStyle. The position to override the quick-reply style should be on the last position of the array. I would like to request if you can change the line position on the next PR/version.

I switch the position temp for now so I can change the borderColor of the quickreply buttons.

eggybot avatar Sep 20 '23 13:09 eggybot

can u try this?

const renderQuickReply = props => {
   return <QuickReply 
            {...props} color={yourColor}
            />
}
 
<GiftedChat renderQuickReplys={renderQuickReply}/>

fukemy avatar Sep 21 '23 07:09 fukemy

can u try this?

const renderQuickReply = props => {
   return <QuickReply 
            {...props} color={yourColor}
            />
}
 
<GiftedChat renderQuickReplys={renderQuickReply}/>

yup it works also that way but I prefer under quickReplyStyle, if the owner can change the position (like quickReplyTextStyle which should be that way) in the next version so that it will be much simpler to use the quickReplyStyle

eggybot avatar Sep 21 '23 10:09 eggybot