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.
package/lib/components/Button.js
CHANGED
|
@@ -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,
|
|
@@ -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;
|
|
@@ -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.
|
|
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": "
|
|
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": "^
|
|
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
|
},
|