callstack / callstack/react-native-paper
[IconButton] Error Check the render method of `ForwardRef`. in 5.14.5
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
### Current behaviour
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports
Check the render method of `ForwardRef`.
### Expected behaviour
No errors
### How to reproduce?
install 5.14.5, add this component anywhere. it will crash in runtime.
```react
null} />
```
### Preview
### What have you tried so far?
reverting back to 5.14.4 solves an issue.
### Your Environment
| software | version
| --------------------- | -------
| ios | V
| android | ?
| react-native | 0.79.4
| react-native-paper | 5.14.5
| node | 24.2.0
| npm or yarn | npm
| expo sdk | 53.0.9
贡献指南
调研方向
首先,在列出的 React Native 和 Expo 版本下,使用 react-native-paper 5.14.5 和 IconButton 示例重现崩溃。将其行为与 5.14.4 进行比较,并跟踪 IconButton 的渲染路径以确定回归;当组件能够渲染且不再出现所报告的运行时错误时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- frontend, mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100