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

Changing font of quick reply buttons #2171

Closed
admehta01 opened this issue Mar 30, 2022 · 3 comments · Fixed by #2185
Closed

Changing font of quick reply buttons #2171

admehta01 opened this issue Mar 30, 2022 · 3 comments · Fixed by #2185

Comments

@admehta01
Copy link

Issue Description

Unable to change font-family/size of quick reply buttons

Steps to Reproduce / Code Snippets

  const renderQuickReplies = (props: any) => (
    <QuickReplies
      {...props}
      color="purple"
      quickReplyStyle={{
        fontSize: 18,
        borderWidth: 2,
        borderRadius: 10,
        marginRight: 5,
        marginVertical: 5,
      }}
    />
  );

Expected Results

Text should be larger in quick reply bubbles.

Additional Information

  • Nodejs version: 16.14.2
  • React version: 17.0.1
  • React Native version: 0.64.3
  • react-native-gifted-chat version: 0.16.3
  • Platform(s) (iOS, Android, or both?): Android
  • TypeScript version: 4.3.5
@Johan-dutoit
Copy link
Collaborator

Johan-dutoit commented Apr 17, 2022

quickReplyStyle is of type ViewStyle and only affects the "container".
Currently there is no way to change the style of the buttons directly.

One way would be to override the entire quick replies component.

@Johan-dutoit
Copy link
Collaborator

Feature added, will be available in v1.0.0-beta-3

@admehta01
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants