mirror of
https://github.com/zhigang1992/react-native-bottom-sheet.git
synced 2026-01-12 22:50:12 +08:00
fix: fixed backdropComponent typing
This commit is contained in:
7
src/components/bottomSheet/types.d.ts
vendored
7
src/components/bottomSheet/types.d.ts
vendored
@@ -3,6 +3,7 @@ import type Animated from 'react-native-reanimated';
|
||||
import type { State } from 'react-native-gesture-handler';
|
||||
import type { BottomSheetHandleProps } from '../bottomSheetHandle';
|
||||
import type { BottomSheetBackgroundProps } from '../bottomSheetBackground';
|
||||
import type { BottomSheetBackdropProps } from '../bottomSheetBackdrop';
|
||||
|
||||
export type BottomSheetProps = {
|
||||
// configuration
|
||||
@@ -95,12 +96,14 @@ export type BottomSheetProps = {
|
||||
handleComponent?: React.FC<BottomSheetHandleProps> | null;
|
||||
/**
|
||||
* Component to be placed as a sheet backdrop.
|
||||
* @type React.FC
|
||||
* @see {BottomSheetBackdropProps}
|
||||
* @type React.FC\<BottomSheetBackdropProps\>
|
||||
* @default null
|
||||
*/
|
||||
backdropComponent?: React.FC<any> | null;
|
||||
backdropComponent?: React.FC<BottomSheetBackdropProps> | null;
|
||||
/**
|
||||
* Component to be placed as a sheet background.
|
||||
* @see {BottomSheetBackgroundProps}
|
||||
* @type React.FC\<BottomSheetBackgroundProps\>
|
||||
*/
|
||||
backgroundComponent?: React.FC<BottomSheetBackgroundProps> | null;
|
||||
|
||||
Reference in New Issue
Block a user