secullum-react-native-ui 4.6.11 → 4.6.12

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.
@@ -7,6 +7,8 @@ export interface ButtonProperties {
7
7
  textStyle?: StyleProp<TextStyle>;
8
8
  onPress: () => void;
9
9
  disabled?: boolean;
10
+ disabledBackgroundColor?: string;
11
+ disabledLabelColor?: string;
10
12
  nativeID?: string;
11
13
  }
12
14
  export declare class Button extends React.Component<ButtonProperties> {
@@ -9,6 +9,7 @@ class Button extends React.Component {
9
9
  constructor() {
10
10
  super(...arguments);
11
11
  this.getStyles = () => {
12
+ const { disabledBackgroundColor, disabledLabelColor } = this.props;
12
13
  const theme = (0, theme_1.getTheme)();
13
14
  const styles = react_native_1.StyleSheet.create({
14
15
  touchable: {
@@ -34,10 +35,10 @@ class Button extends React.Component {
34
35
  color: theme.textColor4
35
36
  },
36
37
  disabled: {
37
- backgroundColor: theme.backgroundColor2
38
+ backgroundColor: disabledBackgroundColor !== null && disabledBackgroundColor !== void 0 ? disabledBackgroundColor : theme.backgroundColor2
38
39
  },
39
40
  textDisabled: {
40
- color: 'silver'
41
+ color: disabledLabelColor !== null && disabledLabelColor !== void 0 ? disabledLabelColor : 'silver'
41
42
  }
42
43
  });
43
44
  return styles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.6.11",
3
+ "version": "4.6.12",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [