react-native-boxes 1.4.53 → 1.4.54

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Modal.tsx +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.53",
3
+ "version": "1.4.54",
4
4
  "description": "A react native library for rapid development of UI using boxes",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/Modal.tsx CHANGED
@@ -641,9 +641,12 @@ export type ConfirmationDialogProps = {
641
641
  noSheet?: boolean,
642
642
  style?: ViewStyle
643
643
  }
644
-
645
644
  export function ConfirmationDialog(props: ConfirmationDialogProps) {
646
645
 
646
+ return <GenericDialog {...props} cancelText={props.cancelText || 'Cancel'} confirmText={props.confirmText || 'Confirm'} />
647
+ }
648
+ export function GenericDialog(props: ConfirmationDialogProps) {
649
+
647
650
  const confirmText = props.confirmText || 'Confirm'
648
651
  const cancelText = props.cancelText || 'Cancel'
649
652
  const theme = useContext(ThemeContext)