Skip to content

Commit fd1e7b5

Browse files
committed
1 parent ca2da77 commit fd1e7b5

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-swipeout",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"description": "swipe out ui component for react(web and react-native)",
55
"keywords": [
66
"react",
@@ -57,21 +57,21 @@
5757
"dependencies": {
5858
"babel-runtime": "6.x",
5959
"classnames": "2.x",
60-
"rc-gesture": "~0.0.20",
60+
"rc-gesture": "~0.0.22",
6161
"react-native-swipeout": "^2.2.2"
6262
},
6363
"devDependencies": {
6464
"@types/mocha": "~2.2.32",
65-
"@types/react": "~16.0.2",
66-
"@types/react-dom": "15.5.1",
67-
"@types/react-native": "^0.47.2",
65+
"@types/react": "latest",
66+
"@types/react-dom": "latest",
67+
"@types/react-native": "latest",
6868
"expect.js": "0.3.x",
6969
"pre-commit": "1.x",
7070
"rc-test": "~6.0.3",
7171
"rc-tools": "6.x",
72-
"react": "^15.0.0",
73-
"react-dom": "^15.0.0",
74-
"react-native": "~0.42.0",
72+
"react": "^16.0.0",
73+
"react-dom": "^16.0.0",
74+
"react-native": "~0.55.4",
7575
"react-native-index-page": "~0.2.0",
7676
"react-navigation": "1.0.0-beta.12"
7777
},

src/Swipeout.native.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ class Swipeout extends React.Component<SwipeoutPropType, any> {
5858
}
5959

6060
render() {
61-
const {
62-
disabled, autoClose, style, left, right, onOpen, onClose, children, ...restProps,
63-
} = this.props;
61+
const { disabled, autoClose, style, left, right, onOpen, onClose, children, ...restProps } = this.props;
6462

6563
const customLeft = left && left.map(btn => {
6664
return this.renderCustomButton(btn);

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"moduleResolution": "node",
55
"jsx": "preserve",
66
"allowSyntheticDefaultImports":true,
7-
"target": "es6"
7+
"target": "es6",
8+
"skipLibCheck": true
89
}
910
}

typings/custom.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ declare module "rc-swipeout" {
1212
var Ret: any;
1313
export default Ret;
1414
}
15-
16-
declare module "react-native-swipeout" {
17-
var Ret: any;
18-
export default Ret;
19-
}

0 commit comments

Comments
 (0)