secullum-react-native-ui 4.14.3 → 4.15.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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RadioButton = void 0;
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const react_native_1 = require("react-native");
|
|
6
|
+
const test_1 = require("../modules/test");
|
|
6
7
|
const theme_1 = require("../modules/theme");
|
|
7
8
|
class RadioButton extends React.Component {
|
|
8
9
|
constructor() {
|
|
@@ -45,8 +46,8 @@ class RadioButton extends React.Component {
|
|
|
45
46
|
render() {
|
|
46
47
|
const { items, value, onChange } = this.props;
|
|
47
48
|
const styles = this.getStyles();
|
|
48
|
-
return (React.createElement(react_native_1.View, null, items.map(item => (React.createElement(react_native_1.TouchableWithoutFeedback, { key: item.value, onPress: () => onChange(item.value) },
|
|
49
|
-
React.createElement(react_native_1.View, { style: styles.radioContainer },
|
|
49
|
+
return (React.createElement(react_native_1.View, null, items.map(item => (React.createElement(react_native_1.TouchableWithoutFeedback, { key: item.value, onPress: () => onChange(item.value), testID: (0, test_1.getTestID)(item.nativeID) },
|
|
50
|
+
React.createElement(react_native_1.View, { style: styles.radioContainer, nativeID: item.nativeID },
|
|
50
51
|
React.createElement(react_native_1.View, { style: styles.radioButtom }, item.value === value && React.createElement(react_native_1.View, { style: styles.radioMark })),
|
|
51
52
|
React.createElement(react_native_1.Text, { style: styles.labelRadioButtom }, item.label)))))));
|
|
52
53
|
}
|
package/lib/components/Text.d.ts
CHANGED
package/lib/components/Text.js
CHANGED
|
@@ -25,9 +25,9 @@ class Text extends React.Component {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
const { style, children, nativeID
|
|
28
|
+
const { style, children, nativeID } = this.props;
|
|
29
29
|
const textStyle = this.getStyles();
|
|
30
|
-
return (React.createElement(react_native_1.Text, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [textStyle.text, style]
|
|
30
|
+
return (React.createElement(react_native_1.Text, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [textStyle.text, style] }, children));
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.Text = Text;
|