callstack / callstack/react-native-paper
onPress beeing called after animation finishes
- Ngôn ngữ chính
- TypeScript
- Star
- 14.5k
- Fork
- 2.2k
- Merge trung bình
- 5 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
### 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện độ trễ trong một dự án React Native tối giản với React Native Paper trên Android 14, sử dụng các phiên bản được liệt kê trong issue. Bắt đầu bằng cách cô lập một nút có ripple hoặc animation và quan sát thời điểm onPress được kích hoạt so với thao tác điều hướng. Được xem là hoàn thành khi các lần chạm kích hoạt onPress ngay lập tức, trong khi animation ripple vẫn khả dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- android, react-native
- Lĩnh vực
- mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100