Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Commit 33f45d9

Browse files
committed
fix: errors, bump 2.3.6
1 parent e766169 commit 33f45d9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

dist/NativeButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ var NativeButton = (0, _createReactClass2.default)({
4242

4343

4444
propTypes: _extends({}, _reactNative.TouchableWithoutFeedback.propTypes, {
45-
textStyle: _propTypes2.default.object,
46-
disabledStyle: _propTypes2.default.object,
45+
textStyle: _propTypes2.default.any,
46+
disabledStyle: _propTypes2.default.any,
4747
children: _propTypes2.default.node.isRequired,
4848
underlayColor: _propTypes2.default.string,
4949
background: _propTypes2.default.any

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ var SwipeoutBtn = (0, _createReactClass2.default)({
8787
width: btn.width
8888
}]);
8989

90-
var styleSwipeoutBtnText = _extends({}, _styles2.default.swipeoutBtnText);
90+
var styleSwipeoutBtnText = [_styles2.default.swipeoutBtnText];
9191

9292
// apply text color
93-
if (btn.color) styleSwipeoutBtnText = _extends({}, styleSwipeoutBtnText, { color: btn.color });
93+
if (btn.color) styleSwipeoutBtnText.push({ color: btn.color });
9494

9595
return _react2.default.createElement(
9696
_NativeButton2.default,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-swipeout",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"description": "iOS-style swipeout buttons behind component",
55
"main": "dist/index.js",
66
"types": "index.d.ts",

src/NativeButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const NativeButton = createReactClass({
3333
// Extract parent props
3434
...TouchableWithoutFeedback.propTypes,
3535
textStyle: PropTypes.any,
36-
disabledStyle: PropTypes.object,
36+
disabledStyle: PropTypes.any,
3737
children: PropTypes.node.isRequired,
3838
underlayColor: PropTypes.string,
3939
background: PropTypes.any,

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ const SwipeoutBtn = createReactClass({
7070
width: btn.width,
7171
}]);
7272

73-
var styleSwipeoutBtnText = { ...styles.swipeoutBtnText };
73+
var styleSwipeoutBtnText = [styles.swipeoutBtnText];
7474

7575
// apply text color
76-
if (btn.color) styleSwipeoutBtnText = { ...styleSwipeoutBtnText, color: btn.color };
76+
if (btn.color) styleSwipeoutBtnText.push({color: btn.color });
7777

7878
return (
7979
<NativeButton

0 commit comments

Comments
 (0)