secullum-react-native-ui 4.15.1 → 4.15.2

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.
@@ -14,6 +14,7 @@ export interface DetailsLine {
14
14
  }
15
15
  export interface DetailsProperties {
16
16
  title: string;
17
+ titleNativeId?: string;
17
18
  lines: Array<DetailsLine>;
18
19
  lineTitleStyle?: StyleProp<TextStyle>;
19
20
  lineValueStyle?: StyleProp<TextStyle>;
@@ -84,12 +84,12 @@ class Details extends React.Component {
84
84
  };
85
85
  }
86
86
  render() {
87
- const { title, lines } = this.props;
87
+ const { title, lines, titleNativeId } = this.props;
88
88
  const styles = this.getStyles();
89
89
  return (React.createElement(React.Fragment, null,
90
90
  React.createElement(Card_1.Card, null,
91
91
  React.createElement(Card_1.Card.Section, null,
92
- React.createElement(react_native_1.Text, { style: styles.title }, title))),
92
+ React.createElement(react_native_1.Text, { nativeID: titleNativeId, testID: (0, test_1.getTestID)(titleNativeId), style: styles.title }, title))),
93
93
  lines.map(this.renderLine)));
94
94
  }
95
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.15.1",
3
+ "version": "4.15.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [