callstack / callstack/react-native-paper

iOS app open/close transition shows shadow on SegmentedButtons

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

描述

### Current behaviour
I am rendering a Segmented Button (basic, vanilla implementation)
When I open or close the iOS app, I see a gradient within one of the segments.

### Expected behaviour
No gradient.

### How to reproduce?
Use iOS
Add a segmented button to your view.
Close or open the iOS app to show the gradient.

### Preview
Implementation:
``

Screenshot:
![Image](https://github.com/user-attachments/assets/5f424282-68bd-4f18-8a6f-0257be7122d4)

### What have you tried so far?
Explicitly setting a background color with
`style={[styles.group, { backgroundColor: theme.colors.background }]}`

### Your Environment

| software | version
| --------------------- | -------
| ios | 16.0
| react-native | 0.76.3
| react-native-paper | ^5.12.5

贡献指南

打开贡献指南

调研方向

从 SegmentedButtons 的实现开始,使用 issue 中的 vanilla segmented-button 示例在 iOS 16.0 上复现该过渡效果。当打开或关闭应用时,segment 内不再显示渐变或阴影,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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