fix: fixed backdropComponent typing

This commit is contained in:
Mo Gorhom
2020-12-22 13:28:13 +01:00
parent 216432a60e
commit 4af7d5c02b

View File

@@ -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;