Skip to content

Commit

Permalink
docs: added docs for backgroundComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Aug 11, 2020
1 parent 9a65a74 commit 7edd480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ Component to be placed as a sheet handle.

> `required:` NO | `type:` React.FC<[BottomSheetHandleProps](./src/components/handle/types.d.ts)>
#### `backgroundComponent`

Component to be placed as a background.

> `required:` NO | `type:` React.FC<ViewProps>
#### `onChange`

Callback when sheet position changed to a provided point.
Expand Down
2 changes: 1 addition & 1 deletion src/components/bottomSheet/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface BottomSheetProps extends BottomSheetAnimationConfigs {
handleComponent?: React.FC<BottomSheetHandleProps>;
/**
* Component to be placed as a background.
* @type React.FC
* @type React.FC\<ViewProps\>
*/
backgroundComponent?: React.FC<ViewProps>;
/**
Expand Down

0 comments on commit 7edd480

Please sign in to comment.