callstack / callstack/react-native-paper

PaperProvider breaks styles

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

描述

### Current behaviour
When trying to make a Dialog, the entire colors of my elements change

### Expected behaviour
No styling should be affected

### How to reproduce?
Just copy and paste the example of the Dialog and place a anywhere

### Preview
![Image](https://github.com/user-attachments/assets/97670c7a-f03b-4bb2-a994-a7b0312d6f69)
![Image](https://github.com/user-attachments/assets/e3a31ee7-3ca3-4f65-98d5-00db01345fa8)

### What have you tried so far?
Placing it at different places in the provider

### Your Environment

| software | version
| --------------------- | -------
| ios | x
| android | 13.0
| react-native | 0.76.7
| react-native-paper | 5.13.1
| node | 23.3.0
| npm or yarn | 10.9.0
| expo sdk | 52.0.19

贡献指南

打开贡献指南

调研方向

从 issue 中描述的 PaperProvider 和 Dialog 示例开始,使用 react-native-paper 5.13.1、React Native 0.76.7 和 Expo SDK 52。将一个 Text 元素放置在 Dialog 旁边,并比较有无 provider 时它们的颜色,以复现该行为。完成的标准是:可以使用 Dialog,而不会改变其他元素的样式。

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

评估

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

把新 issue 发到你的邮箱

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