callstack / callstack/react-native-paper

FAB.Group doesn't have an option to set the mode of the FAB of action array

Đang mở
#3,932 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
FAB feature request
Ngôn ngữ chính
TypeScript
Star
14.5k
Fork
2.2k
Merge trung bình
5 ngày 23 giờ
Pull request đã merge (30 ngày)
12

Mô tả

I was looking through the FAB and FAB.Group components and noticed that it is not possible to set the mode of the FAB which is used for actions. What I'm trying to do is "merge" button and label so I can have one combined field for every action.

I believe this would be possible if the props of the FAB.Group would be expanded with prop called "mode", "FABmode" or something different which would then be propagated to the FAB component as `mode={mode}`. Alternatively, every action might be expanded with mode field which could be used as `mode={it.mode}`.

**This is the best I can do without setting the mode of the FAB to "flat":**
![With line](https://github.com/callstack/react-native-paper/assets/58145119/3b7aa2b5-6b02-460a-9c07-5d2eb67eb81a)

**This is what I would like to do (done with changes to the FAB.Group component):**
![Without line](https://github.com/callstack/react-native-paper/assets/58145119/acaf54cb-a291-4623-93d1-3af52e0601ce)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.