fix type
This commit is contained in:
@@ -3,7 +3,7 @@ import {AccessibilityProps, ViewStyle} from 'react-native'
|
|||||||
import {PressableEvent} from 'react-native-gesture-handler/lib/typescript/components/Pressable/PressableProps'
|
import {PressableEvent} from 'react-native-gesture-handler/lib/typescript/components/Pressable/PressableProps'
|
||||||
import {
|
import {
|
||||||
BlueskyBottomSheetPressable,
|
BlueskyBottomSheetPressable,
|
||||||
BueskyBottomSheetPressableProps,
|
BlueskyBottomSheetPressableProps,
|
||||||
} from '@haileyok/bluesky-bottom-sheet'
|
} from '@haileyok/bluesky-bottom-sheet'
|
||||||
|
|
||||||
import {atoms as a} from '#/alf'
|
import {atoms as a} from '#/alf'
|
||||||
@@ -23,7 +23,7 @@ export function BottomSheetButton({
|
|||||||
disabled,
|
disabled,
|
||||||
style,
|
style,
|
||||||
...rest
|
...rest
|
||||||
}: BueskyBottomSheetPressableProps &
|
}: BlueskyBottomSheetPressableProps &
|
||||||
AccessibilityProps &
|
AccessibilityProps &
|
||||||
VariantProps & {
|
VariantProps & {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
PressableProps,
|
PressableProps,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import {PressableEvent} from 'react-native-gesture-handler/lib/typescript/components/Pressable/PressableProps'
|
import {PressableEvent} from 'react-native-gesture-handler/lib/typescript/components/Pressable/PressableProps'
|
||||||
import {BueskyBottomSheetPressableProps} from '@haileyok/bluesky-bottom-sheet'
|
import {BlueskyBottomSheetPressableProps} from '@haileyok/bluesky-bottom-sheet'
|
||||||
|
|
||||||
import {TextStyleProp, ViewStyleProp} from '#/alf'
|
import {TextStyleProp, ViewStyleProp} from '#/alf'
|
||||||
import * as Dialog from '#/components/Dialog'
|
import * as Dialog from '#/components/Dialog'
|
||||||
@@ -89,7 +89,7 @@ export type TriggerChildProps =
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type ItemProps = React.PropsWithChildren<
|
export type ItemProps = React.PropsWithChildren<
|
||||||
Omit<BueskyBottomSheetPressableProps, 'style'> &
|
Omit<BlueskyBottomSheetPressableProps, 'style'> &
|
||||||
ViewStyleProp & {
|
ViewStyleProp & {
|
||||||
label: string
|
label: string
|
||||||
onPress: (e: PressableEvent | GestureResponderEvent) => void
|
onPress: (e: PressableEvent | GestureResponderEvent) => void
|
||||||
|
|||||||
Reference in New Issue
Block a user