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

How do I set roundness for buttons? #4238

Closed
joshua-revolutions opened this issue Dec 22, 2023 · 0 comments · Fixed by #4260
Closed

How do I set roundness for buttons? #4238

joshua-revolutions opened this issue Dec 22, 2023 · 0 comments · Fixed by #4260
Assignees
Labels
Button question Question related to the library, not an issue

Comments

@joshua-revolutions
Copy link

Ask your Question

I'm using the FAB button. I'm using v5 of react-native-paper. Even if I set roundness to 0 in the custom theme nothing happens:

const customTheme = {
    ...DefaultTheme,
    dark: false,
    roundness: 0,
    colors: {
        primary: colors.primary,
        accent: colors.primary,
        background: 'white',
        surface: white,
        error: '#B00020',
        text: black,
        onSurface: '#000000',
        disabled: color(black).alpha(0.26).rgb().string(),
        placeholder: color(black).alpha(0.54).rgb().string(),
        backdrop: color(black).alpha(0.5).rgb().string(),
        notification: pinkA400,
    },
    //@ts-ignore
    fonts: configureFonts({ config: fontConfig, isV3: true }),
    animation: {
        scale: 1.0,
    },
};
@joshua-revolutions joshua-revolutions added the question Question related to the library, not an issue label Dec 22, 2023
@lukewalczak lukewalczak linked a pull request Jan 8, 2024 that will close this issue
@lukewalczak lukewalczak self-assigned this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Button question Question related to the library, not an issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants