react-native-boxes 1.4.56 → 1.4.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Modal.tsx +6 -2
package/package.json
CHANGED
package/src/Modal.tsx
CHANGED
|
@@ -626,6 +626,7 @@ export const DropDownView = (props: DropDownViewProps) => {
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
|
|
629
|
+
|
|
629
630
|
export type ConfirmationDialogProps = {
|
|
630
631
|
visible: boolean,
|
|
631
632
|
title?: string | React.Component,
|
|
@@ -641,10 +642,12 @@ export type ConfirmationDialogProps = {
|
|
|
641
642
|
noSheet?: boolean,
|
|
642
643
|
style?: ViewStyle
|
|
643
644
|
}
|
|
644
|
-
export function ConfirmationDialog(props: ConfirmationDialogProps) {
|
|
645
645
|
|
|
646
|
-
|
|
646
|
+
export function ConfirmationDialog(props: ConfirmationDialogProps) {
|
|
647
|
+
return <GenericDialog {...props} confirmText={props.confirmText || 'common.confirm'} cancelText={props.cancelText || 'common.cancel'} />
|
|
647
648
|
}
|
|
649
|
+
|
|
650
|
+
|
|
648
651
|
export function GenericDialog(props: ConfirmationDialogProps) {
|
|
649
652
|
|
|
650
653
|
const confirmText = props.confirmText
|
|
@@ -693,6 +696,7 @@ export function GenericDialog(props: ConfirmationDialogProps) {
|
|
|
693
696
|
}
|
|
694
697
|
|
|
695
698
|
|
|
699
|
+
|
|
696
700
|
export function WebBrowserView(props: {
|
|
697
701
|
url: string,
|
|
698
702
|
title?: string,
|