···11import React from 'react'
22-import type {AccessibilityProps} from 'react-native'
22+import type {AccessibilityProps, GestureResponderEvent} from 'react-native'
33import {BottomSheetProps} from '@gorhom/bottom-sheet'
4455import {ViewStyleProp} from '#/alf'
···1010 * Mutated by useImperativeHandle to provide a public API for controlling the
1111 * dialog. The methods here will actually become the handlers defined within
1212 * the `Dialog.Outer` component.
1313+ *
1414+ * `Partial<GestureResponderEvent>` here allows us to add this directly to the
1515+ * `onPress` prop of a button, for example. If this type was not added, we
1616+ * would need to create a function to wrap `.open()` with.
1317 */
1418export type DialogControlRefProps = {
1515- open: (options?: DialogControlOpenOptions) => void
1919+ open: (
2020+ options?: DialogControlOpenOptions & Partial<GestureResponderEvent>,
2121+ ) => void
1622 close: (callback?: () => void) => void
1723}
1824