Skip to content

Commit

Permalink
fix: fixed backdropComponent typing
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Dec 22, 2020
1 parent 216432a commit 4af7d5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/bottomSheet/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4af7d5c

Please sign in to comment.