disable allow font scale doesn't work in button group · Issue #3969 · react-native-elements/react-native-elements · GitHub
Skip to content

disable allow font scale doesn't work in button group #3969

@frankA10019

Description

@frankA10019

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

I want to fix font size in buttonGroup. No matter I use Text with react native or react native elements. The font size can't be fixed. Please help, thanks.

<ButtonGroup
buttons={[
<Text
key={0}
allowFontScaling={false}
style={{ fontSize: 16 }}
>
選項 1
,
<Text
key={1}
allowFontScaling={false}
style={{ fontSize: 16 }}
>
選項 2
,
/>

Expected behavior

Font size should be fixed.

Describe the bug

Font size can't be fixed.

Steps To Reproduce

add text component in buttons.

Screenshots

No response

Your Environment

`npx @rneui/envinfo`
  ```
    Output from `npx @rneui/envinfo` goes here.
  ```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions