Skip to content

Commit

Permalink
chore(confirm-modal): add background style type
Browse files Browse the repository at this point in the history
  • Loading branch information
Simoon-F committed Jun 26, 2023
1 parent c6ddc7a commit c6126fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/confirm-dialog.tsx
Expand Up @@ -39,6 +39,7 @@ const ConfirmDialog = memo(
confirmTextStyle,
descriptionStyle: overrideDescriptionStyle,
cancelTextVisible = true,
modalBackgroundStyle,
buttonContainerStyle: overrideButtonContainerStyle,
}: IConfirmDialogProps) => {
const styles = useRef(Styles()).current;
Expand Down Expand Up @@ -125,6 +126,7 @@ const ConfirmDialog = memo(
{
opacity: ModalOpacity,
},
modalBackgroundStyle,
]}
>
<View style={[styles.modalView, containerStyle]}>
Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Expand Up @@ -38,6 +38,8 @@ export type ConfirmModalType = {

cancelTextVisible?: boolean;

modalBackgroundStyle?: StyleProp<ViewStyle>;

buttonContainerStyle?: StyleProp<ViewStyle>;
};

Expand Down Expand Up @@ -72,6 +74,8 @@ export interface IConfirmDialogProps {

cancelTextVisible?: boolean;

modalBackgroundStyle?: StyleProp<ViewStyle>;

buttonContainerStyle?: StyleProp<ViewStyle>;
}

Expand Down

0 comments on commit c6126fc

Please sign in to comment.