react-native-boxes 1.4.56 → 1.4.58

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.56",
3
+ "version": "1.4.58",
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
@@ -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
- return <GenericDialog {...props} cancelText={props.cancelText || 'Cancel'} confirmText={props.confirmText || 'Confirm'} />
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,
package/src/Styles.tsx CHANGED
@@ -30,8 +30,8 @@ export const Fonts = {
30
30
  }
31
31
 
32
32
  export const Colors = {
33
- accent: '#1976D2',
34
- accentLight: '#2196F3',
33
+ accent: '#086CFE',
34
+ accentLight: '#337DFF',
35
35
  text: '#444444',
36
36
  caption: '#A9A9A9',
37
37
  heading: '#222222',
@@ -55,8 +55,8 @@ export const Colors = {
55
55
  export const LightColors = Colors
56
56
 
57
57
  export const DarkColors = {
58
- accent: '#1976D2',
59
- accentLight: '#2196F3',
58
+ accent: '#086CFE',
59
+ accentLight: '#337DFF',
60
60
  text: '#f2f2f2',
61
61
  caption: '#565656',
62
62
  heading: '#dddddd',