Commit f922b3b
authored
Export
## Description
As stated in [this
discussion](#3512),
`PressableEvent` is not exported. This PR adds this export.
## Test plan
<details>
<summary>Tested on the following code:</summary>
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import type { PressableEvent } from 'react-native-gesture-handler';
import { Pressable } from 'react-native-gesture-handler';
export default function EmptyExample() {
const handlePress = (e: PressableEvent) => {
console.log(e.nativeEvent.changedTouches);
};
return (
<View style={styles.container}>
<Pressable onPress={handlePress} />
<Pressable
onPress={(e) => {
console.log(e.nativeEvent.changedTouches);
}}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
</details>PressableEvent type (#4324)1 parent 1e4378b commit f922b3b
2 files changed
Lines changed: 2 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments