callstack / callstack/react-native-paper
onPress beeing called after animation finishes
- 主要语言
- TypeScript
- 星标
- 14.5k
- 派生
- 2.2k
- 平均合并
- 5 天 23 小时
- 30 天内合并 PR
- 12
描述
### Current behaviour
When i press on any button that have ripple effect or animation its onPress event is called after ripple animation finishes.
### Expected behaviour
Suppose to trigger onPress imidiatly on tap.
### How to reproduce?
I just setup a barebone react native project and setup react native paper on top of it, so when i launch a screen from one to other onPress waits for button ripple animation to finish first then it opens a next screen.
### Preview
### What have you tried so far?
I tried disabling the ripple animation from paper provider settings it did improved the delay but still delay is noticeable and also i lose the animation as well.
### Your Environment
| software | version
| --------------------- | -------
| android | 14
| react-native | 0.76.1
| react-native-paper | ^5.12.5
| node | 22.0.0
| npm or yarn | npm
| expo sdk | sdk
贡献指南
调研方向
使用 issue 中列出的版本,在 Android 14 上通过 React Native Paper 的最简 React Native 项目复现该延迟。首先隔离一个带有 ripple 或动画的按钮,并观察相对于导航操作,onPress 何时触发。完成的标准是:点击会立即触发 onPress,同时 ripple 动画仍然可用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100