mirror of
https://github.com/zhigang1992/react-native-swipeout.git
synced 2026-04-30 13:22:11 +08:00
fix: errors, bump 2.3.6
This commit is contained in:
4
dist/NativeButton.js
vendored
4
dist/NativeButton.js
vendored
@@ -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
4
dist/index.js
vendored
@@ -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,
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user