Skip to content

Commit 19e453f

Browse files
committed
v2.1.0 fix ViewPropTypes
1 parent 8e0a981 commit 19e453f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ import {
1313
Animated,
1414
Dimensions,
1515
Text,
16-
TouchableWithoutFeedback,
17-
ViewPropTypes as RNViewPropTypes,
16+
TouchableWithoutFeedback
1817
} from 'react-native'
1918

2019
import PropTypes from 'prop-types';
21-
const ViewPropTypes = RNViewPropTypes || View.propTypes;
20+
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
2221
export const DURATION = {
2322
LENGTH_SHORT: 500,
2423
FOREVER: 0,

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-easy-toast",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "A react native module to show toast like android, it works on iOS and Android.",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -29,14 +29,12 @@
2929
"url": "https://github.com/crazycodeboy/react-native-easy-toast/issues"
3030
},
3131
"dependencies": {
32+
"deprecated-react-native-prop-types": "^2.3.0",
3233
"prop-types": "^15.6.0"
3334
},
3435
"peerDependencies": {
3536
"react-native": ">=0.20.0",
3637
"prop-types": "^15.5.7"
3738
},
38-
"homepage": "https://github.com/crazycodeboy/react-native-easy-toast#readme",
39-
"dependencies": {
40-
"prop-types": "^15.5.10"
41-
}
39+
"homepage": "https://github.com/crazycodeboy/react-native-easy-toast#readme"
4240
}

0 commit comments

Comments
 (0)