Commit 0a5bf33
Override shouldDelayChildPressedState in Android containers
Summary:
Changelog: [Android][Fixed] Prevent React Native containers from delaying native touches
[`shouldDelayChildPressedState`](https://developer.android.com/reference/android/view/ViewGroup#shouldDelayChildPressedState%28%29) returns `true` for compatibility reasons and non-scrollable containers should override it and return `false` to prevent the press feedback from being delayed.
Differential Revision: D1080033741 parent 40c90ad commit 0a5bf33
5 files changed
Lines changed: 10 additions & 0 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/views
- modal
- safeareaview
- text
- view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5403 | 5403 | | |
5404 | 5404 | | |
5405 | 5405 | | |
| 5406 | + | |
5406 | 5407 | | |
5407 | 5408 | | |
5408 | 5409 | | |
| |||
6445 | 6446 | | |
6446 | 6447 | | |
6447 | 6448 | | |
| 6449 | + | |
6448 | 6450 | | |
6449 | 6451 | | |
6450 | 6452 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
653 | 655 | | |
654 | 656 | | |
655 | 657 | | |
| |||
0 commit comments