callstack / callstack/react-native-paper

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

未关闭
#3,932 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
FAB feature request
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

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)

贡献指南

打开贡献指南

调研方向

Start by locating the FAB.Group and FAB component entry points and reviewing how action items are converted into FABs. Compare the proposed group-level and per-action mode options, then verify that the chosen API lets action FABs render with the requested mode and preserves existing behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native, typescript
领域
frontend, mobile
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。