Skip to content

Button roundness being ignoredΒ #3939

@jacquesdev

Description

@jacquesdev

Current behaviour

Setting roundness seems to have no effect on a Button component

Expected behaviour

Setting theme={{ roundness: 5 }} should set it to the custom value

How to reproduce?

Setting theme={{ roundness: 5 }} at the component level, or passing this value in at the global theme level seems to have no effect.

I found it will change if I set it in the Button component theme={{ isV3: false, roundness: 5 }}. I'm not sure why I need to set it to false, seems like a bug to me? Adding isV3 in the global theme object does not make a difference unfortunately, and ideally I'd like to define it a the global theme level.

Preview

v3 = not defined
Screenshot 2023-06-16 at 14 12 48
v3 = false
Screenshot 2023-06-16 at 14 13 07

What have you tried so far?

Playing around with the v3 version

Your Environment

software version
ios x
android x
react-native 0.71.8
react-native-paper 5.8.0
node x.x.x
npm or yarn npm
expo sdk 48.0.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions