react-native-boxes 1.4.52 → 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.
- package/package.json +1 -1
- package/src/Button.tsx +1 -1
- package/src/Modal.tsx +4 -1
package/package.json
CHANGED
package/src/Button.tsx
CHANGED
|
@@ -254,7 +254,7 @@ export function RightIconButton(props: ButtonViewProps) {
|
|
|
254
254
|
}}>
|
|
255
255
|
<BtnIcon color={
|
|
256
256
|
//@ts-ignore
|
|
257
|
-
typeof props.icon == 'string' ? tstyle.color ||
|
|
257
|
+
typeof props.icon == 'string' ? tstyle.color || "#fff" : undefined} />
|
|
258
258
|
</View>
|
|
259
259
|
)
|
|
260
260
|
}
|
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)
|