Commit 441a011
authored
Remove incorrectly passed
## Description
After #3732 using new API results in a crash, as there's no longer
`gestureEvents` field defined on `Gesture` type.
<img width="689" height="41" alt="image"
src="https://github.com/user-attachments/assets/b7e5bc87-f783-41c9-be91-61dd235384d8"
/>
This PR fixes this behavior.
## Test plan
<details>
<summary>Tested on the following example:</summary>
```tsx
import React from 'react';
import { StyleSheet, View } from 'react-native';
import {
GestureDetector,
GestureHandlerRootView,
usePan,
} from 'react-native-gesture-handler';
export default function EmptyExample() {
const pan = usePan({});
return (
<GestureHandlerRootView style={styles.container}>
<GestureDetector gesture={pan}>
<View style={{ width: 300, height: 300, backgroundColor: 'green' }} />
</GestureDetector>
</GestureHandlerRootView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
```
</details>gestureEvents (#3799)1 parent 83110b2 commit 441a011
File tree
1 file changed
+1
-1
lines changed- packages/react-native-gesture-handler/src/v3/detectors
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments