callstack / callstack/react-native-paper

List.Accordion border radius

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

描述

### Ask your Question

Is it possible to have borderRadius on List.Accordion? Currently it has rigid corners and I want them to be rounded.

![Screenshot 2024-04-06 at 16 21 20](https://github.com/callstack/react-native-paper/assets/63498645/d02ab51e-9fa8-4e61-b123-15b97c79728a)

```



selectPostCategoryIcon(props, selectedPostCategory)
}
onPress={(e: GestureResponderEvent) =>
handlePostDropdownPress(selectedPostCategory)
}
expanded={postDropdownExpanded}
titleStyle={{ fontSize: 22 }}
style={{ borderRadius: 100 }}
>

{postCategories.map((item, index) =>
item !== selectedPostCategory ? (

handlePostDropdownPress(item)
}
titleStyle={{ fontSize: 16 }}
left={(props) => selectPostCategoryIcon(props, item)}
style={{ backgroundColor: "white" }}
/>
) : undefined
)}


```

贡献指南

打开贡献指南

调研方向

首先检查 List.Accordion 的入口点以及现有 style prop 的应用方式。验证所报告的生硬边角,然后让 borderRadius 对 accordion 生效,并在相关组件行为或视觉测试中确认圆角外观。

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

评估

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

把新 issue 发到你的邮箱

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