callstack / callstack/react-native-paper

FAB size prop doesnt work if label is provided

Open
#4,793 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

### Current behaviour
FAB size prop doesnt work if label is provided

### Expected behaviour
FAB size should change depending on the size prop even if label is provided

### How to reproduce?
Add a FAB with only icon and size props. It works with small, medium, large sizes fine.
Now add label prop. The FAB is fixed to medium size only, changing size prop has no effect.

### Preview

### What have you tried so far?

### Your Environment

| software | version
| --------------------- | -------
| ios | 17.4
| android | x
| react-native | 0.79.3
| react-native-paper | 5.12.5
| node | x.x.x
| npm or yarn | x.x.x
| expo sdk | 3.0.20

Contributor guide

Open the contributing guide

Research direction

Start at the FAB component and reproduce the issue on iOS with icon, size, and label props using the reported React Native Paper 5.12.5 environment. Compare small, medium, and large sizes with and without a label; done means the size prop changes the labeled FAB consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.