Commit 6e8646a
authored
[General] Throw when no gesture is passed to the
## Description
Adds an explicit error message when `GestureDetector` is rendered
without any gesture. The current behavior is a random error when trying
to call a method on `undefined`.
## Test plan
Verify that the error is thrown when no gesture is passed.GestureDetector (#3884)1 parent 1427aae commit 6e8646a
File tree
1 file changed
+4
-0
lines changed- packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
0 commit comments