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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-boxes",
3
- "version": "1.4.52",
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/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 || theme.colors.invert.text : undefined} />
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)