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

Expose quickReplyContainerStyle #2412

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/QuickReplies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface QuickRepliesProps<TMessage extends IMessage = IMessage> {
sendText?: string
quickReplyStyle?: StyleProp<ViewStyle>
quickReplyTextStyle?: StyleProp<TextStyle>
quickReplyContainerStyle?: StyleProp<ViewStyle>
onQuickReply?(reply: Reply[]): void
renderQuickReplySend?(): React.ReactNode
}
Expand All @@ -68,6 +69,7 @@ export function QuickReplies({
color = Color.peterRiver,
quickReplyStyle,
quickReplyTextStyle,
quickReplyContainerStyle,
onQuickReply,
sendText = 'Send',
renderQuickReplySend,
Expand Down Expand Up @@ -132,7 +134,7 @@ export function QuickReplies({
}

return (
<View style={styles.container}>
<View style={[styles.container, quickReplyContainerStyle]}>
{currentMessage!.quickReplies!.values.map(
(reply: Reply, index: number) => {
const selected = type === 'checkbox' && replies.find(sameReply(reply))
Expand Down Expand Up @@ -184,4 +186,5 @@ QuickReplies.propTypes = {
sendText: PropTypes.string,
renderQuickReplySend: PropTypes.func,
quickReplyStyle: StylePropType,
quickReplyContainerStyle: StylePropType,
}