fix: errors, bump 2.3.6

This commit is contained in:
silentcloud
2018-08-10 11:35:17 +08:00
parent e7661697cb
commit 33f45d9d78
5 changed files with 8 additions and 8 deletions

View File

@@ -42,8 +42,8 @@ var NativeButton = (0, _createReactClass2.default)({
propTypes: _extends({}, _reactNative.TouchableWithoutFeedback.propTypes, { propTypes: _extends({}, _reactNative.TouchableWithoutFeedback.propTypes, {
textStyle: _propTypes2.default.object, textStyle: _propTypes2.default.any,
disabledStyle: _propTypes2.default.object, disabledStyle: _propTypes2.default.any,
children: _propTypes2.default.node.isRequired, children: _propTypes2.default.node.isRequired,
underlayColor: _propTypes2.default.string, underlayColor: _propTypes2.default.string,
background: _propTypes2.default.any background: _propTypes2.default.any

4
dist/index.js vendored
View File

@@ -87,10 +87,10 @@ var SwipeoutBtn = (0, _createReactClass2.default)({
width: btn.width width: btn.width
}]); }]);
var styleSwipeoutBtnText = _extends({}, _styles2.default.swipeoutBtnText); var styleSwipeoutBtnText = [_styles2.default.swipeoutBtnText];
// apply text color // apply text color
if (btn.color) styleSwipeoutBtnText = _extends({}, styleSwipeoutBtnText, { color: btn.color }); if (btn.color) styleSwipeoutBtnText.push({ color: btn.color });
return _react2.default.createElement( return _react2.default.createElement(
_NativeButton2.default, _NativeButton2.default,

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-swipeout", "name": "react-native-swipeout",
"version": "2.3.5", "version": "2.3.6",
"description": "iOS-style swipeout buttons behind component", "description": "iOS-style swipeout buttons behind component",
"main": "dist/index.js", "main": "dist/index.js",
"types": "index.d.ts", "types": "index.d.ts",

View File

@@ -33,7 +33,7 @@ const NativeButton = createReactClass({
// Extract parent props // Extract parent props
...TouchableWithoutFeedback.propTypes, ...TouchableWithoutFeedback.propTypes,
textStyle: PropTypes.any, textStyle: PropTypes.any,
disabledStyle: PropTypes.object, disabledStyle: PropTypes.any,
children: PropTypes.node.isRequired, children: PropTypes.node.isRequired,
underlayColor: PropTypes.string, underlayColor: PropTypes.string,
background: PropTypes.any, background: PropTypes.any,

View File

@@ -70,10 +70,10 @@ const SwipeoutBtn = createReactClass({
width: btn.width, width: btn.width,
}]); }]);
var styleSwipeoutBtnText = { ...styles.swipeoutBtnText }; var styleSwipeoutBtnText = [styles.swipeoutBtnText];
// apply text color // apply text color
if (btn.color) styleSwipeoutBtnText = { ...styleSwipeoutBtnText, color: btn.color }; if (btn.color) styleSwipeoutBtnText.push({color: btn.color });
return ( return (
<NativeButton <NativeButton