secullum-react-native-ui 4.6.13 → 4.7.1

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.
@@ -10,6 +10,7 @@ export interface ButtonProperties {
10
10
  disabledBackgroundColor?: string;
11
11
  disabledLabelColor?: string;
12
12
  nativeID?: string;
13
+ testID?: string;
13
14
  }
14
15
  export declare class Button extends React.Component<ButtonProperties> {
15
16
  static defaultProps: {
@@ -47,14 +47,14 @@ class Button extends React.Component {
47
47
  };
48
48
  }
49
49
  render() {
50
- const { text, primary, style, textStyle, onPress, disabled, nativeID } = this.props;
50
+ const { text, primary, style, textStyle, onPress, disabled, nativeID, testID } = this.props;
51
51
  const styles = this.getStyles();
52
52
  return (React.createElement(react_native_1.TouchableOpacity, { activeOpacity: 0.7, style: [
53
53
  styles.touchable,
54
54
  primary && styles.touchablePrimary,
55
55
  style,
56
56
  disabled && styles.disabled
57
- ], onPress: onPress, disabled: disabled },
57
+ ], onPress: onPress, disabled: disabled, testID: testID || nativeID },
58
58
  React.createElement(react_native_1.Text, { nativeID: nativeID, style: [
59
59
  styles.text,
60
60
  primary && styles.textPrimary,
@@ -4,6 +4,7 @@ export interface Props {
4
4
  message?: string | null;
5
5
  style?: StyleProp<TextStyle>;
6
6
  nativeID?: string;
7
+ testID?: string;
7
8
  }
8
9
  export declare class ErrorMessage extends React.Component<Props> {
9
10
  getStyles: () => {
@@ -19,12 +19,12 @@ class ErrorMessage extends React.Component {
19
19
  };
20
20
  }
21
21
  render() {
22
- const { message, style, nativeID } = this.props;
22
+ const { message, style, nativeID, testID } = this.props;
23
23
  const styles = this.getStyles();
24
24
  if (!message) {
25
25
  return null;
26
26
  }
27
- return (React.createElement(react_native_1.Text, { nativeID: nativeID, style: [styles.errorMessage, style] }, message));
27
+ return (React.createElement(react_native_1.Text, { nativeID: nativeID, testID: testID || nativeID, style: [styles.errorMessage, style] }, message));
28
28
  }
29
29
  }
30
30
  exports.ErrorMessage = ErrorMessage;
@@ -29,6 +29,7 @@ export interface TextBoxProperties {
29
29
  returnKeyType?: ReturnKeyTypeOptions;
30
30
  blurOnSubmit?: boolean;
31
31
  nativeID?: string;
32
+ testID?: string;
32
33
  selection?: {
33
34
  start: number;
34
35
  end?: number;
@@ -47,6 +47,7 @@ class TextBox extends React.Component {
47
47
  const styles = this.getStyles();
48
48
  const incomingProps = {
49
49
  nativeID: this.props.nativeID,
50
+ testID: this.props.testID || this.props.nativeID,
50
51
  autoFocus: this.props.autoFocus,
51
52
  value: this.props.value,
52
53
  onChangeText: this.props.onChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.6.13",
3
+ "version": "4.7.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -19,13 +19,13 @@
19
19
  "docs:publish": "docz build && gh-pages -d .docz/dist"
20
20
  },
21
21
  "dependencies": {
22
- "@react-native-community/datetimepicker": "^3.0.9",
22
+ "@react-native-community/datetimepicker": "7.6.1",
23
23
  "date-fns": "^2.29.3",
24
24
  "react-date-range": "^1.4.0",
25
25
  "react-native-drawer-layout": "^2.0.0",
26
26
  "react-native-elevated-view": "^0.0.6",
27
27
  "react-native-masked-text": "^1.7.2",
28
- "react-native-modal-datetime-picker": "^14.0.1",
28
+ "react-native-modal-datetime-picker": "^17.1.0",
29
29
  "react-native-status-bar-height": "^2.6.0",
30
30
  "react-native-vector-icons": "^8.0.0"
31
31
  },