secullum-react-native-ui 4.3.0 → 4.3.4-beta.0

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.
@@ -6,6 +6,7 @@ interface Props {
6
6
  onChange?: (value: boolean) => void;
7
7
  disabled?: boolean;
8
8
  style?: StyleProp<ViewStyle>;
9
+ renderLabel?: () => React.ReactNode;
9
10
  labelStyle?: StyleProp<TextStyle>;
10
11
  nativeID?: string;
11
12
  }
@@ -32,7 +32,7 @@ class CheckBox extends React.Component {
32
32
  };
33
33
  }
34
34
  render() {
35
- const { label, value, onChange, disabled, style, labelStyle, nativeID } = this.props;
35
+ const { label, value, onChange, disabled, style, labelStyle, renderLabel, nativeID } = this.props;
36
36
  const styles = this.getStyles();
37
37
  return (React.createElement(react_native_1.TouchableOpacity, { style: [styles.container, style], disabled: disabled, onPress: () => {
38
38
  if (onChange) {
@@ -40,7 +40,7 @@ class CheckBox extends React.Component {
40
40
  }
41
41
  } },
42
42
  React.createElement(FontAwesome_1.default, { nativeID: nativeID, name: value ? 'check-square-o' : 'square-o', style: styles.icon }),
43
- React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, label)));
43
+ React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, renderLabel ? renderLabel() : label)));
44
44
  }
45
45
  }
46
46
  exports.CheckBox = CheckBox;
@@ -24,7 +24,7 @@ class Message extends React.Component {
24
24
  alignItems: 'center'
25
25
  },
26
26
  text: {
27
- color: theme.messageTextColor,
27
+ color: theme.textColor3,
28
28
  fontFamily: theme.fontFamily1,
29
29
  fontSize: layout_1.isTablet() ? 25 : 16,
30
30
  textAlign: 'center',
@@ -1,6 +1,6 @@
1
1
  export declare const BLACK = "#282c37";
2
2
  export declare const WHITE = "#ffffff";
3
- export declare const GRAY = "#8c9aa8";
3
+ export declare const GRAY = "#555";
4
4
  export declare const GRAY_1 = "#eef1f6";
5
5
  export declare const GRAY_2 = "#dddddd";
6
6
  export declare const GRAY_3 = "#c2c2c2";
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const browser_1 = require("./browser");
4
4
  exports.BLACK = '#282c37';
5
5
  exports.WHITE = '#ffffff';
6
- exports.GRAY = '#8c9aa8';
6
+ exports.GRAY = '#555';
7
7
  exports.GRAY_1 = '#eef1f6';
8
8
  exports.GRAY_2 = '#dddddd';
9
9
  exports.GRAY_3 = '#c2c2c2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.3.0",
3
+ "version": "4.3.4-beta.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [