Comparing version 1.0.35 to 1.0.36
@@ -31,3 +31,12 @@ "use strict"; | ||
var classStyle = (_b = context === null || context === void 0 ? void 0 : context.getStyle) === null || _b === void 0 ? void 0 : _b.call(context, elem, className, prefixes); | ||
var onClick = undefined; | ||
if ((props === null || props === void 0 ? void 0 : props.onClick) || (props === null || props === void 0 ? void 0 : props.onPress)) { | ||
onClick = (props === null || props === void 0 ? void 0 : props.onClick) || (props === null || props === void 0 ? void 0 : props.onPress); | ||
delete props.onClick; | ||
delete props.onPress; | ||
} | ||
return (0, _tslib.__assign)((0, _tslib.__assign)({}, props), { | ||
onClick: onClick, | ||
className: classStyle | ||
@@ -34,0 +43,0 @@ }); |
@@ -53,4 +53,13 @@ "use strict"; | ||
var onPress = undefined; | ||
if ((props === null || props === void 0 ? void 0 : props.onClick) || (props === null || props === void 0 ? void 0 : props.onPress)) { | ||
onPress = (props === null || props === void 0 ? void 0 : props.onClick) || (props === null || props === void 0 ? void 0 : props.onPress); | ||
delete props.onClick; | ||
delete props.onPress; | ||
} | ||
return (0, _tslib.__assign)({ | ||
style: [classStyle, style] | ||
style: [classStyle, style], | ||
onPress: onPress | ||
}, extraProps); | ||
@@ -57,0 +66,0 @@ }; |
@@ -26,5 +26,3 @@ "use strict"; | ||
activeOpacity: _Actbase.default.defaults.activeOpacity | ||
}, extraProps, { | ||
onPress: props.onPress || props.onClick | ||
}), typeof props.children === 'string' ? _react.default.createElement(_reactNative.Text, null, props.children) : props.children); | ||
}, extraProps), typeof props.children === 'string' ? _react.default.createElement(_reactNative.Text, null, props.children) : props.children); | ||
}); | ||
@@ -31,0 +29,0 @@ |
{ | ||
"name": "actbase", | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"description": "React-Native Design Components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
228050
4871