Skip to content

Commit

Permalink
v2.1.0 fix ViewPropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycodeboy committed Nov 13, 2022
1 parent 8e0a981 commit 19e453f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ import {
Animated,
Dimensions,
Text,
TouchableWithoutFeedback,
ViewPropTypes as RNViewPropTypes,
TouchableWithoutFeedback
} from 'react-native'

import PropTypes from 'prop-types';
const ViewPropTypes = RNViewPropTypes || View.propTypes;
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
export const DURATION = {
LENGTH_SHORT: 500,
FOREVER: 0,
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-easy-toast",
"version": "2.0.0",
"version": "2.1.0",
"description": "A react native module to show toast like android, it works on iOS and Android.",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -29,14 +29,12 @@
"url": "https://github.com/crazycodeboy/react-native-easy-toast/issues"
},
"dependencies": {
"deprecated-react-native-prop-types": "^2.3.0",
"prop-types": "^15.6.0"
},
"peerDependencies": {
"react-native": ">=0.20.0",
"prop-types": "^15.5.7"
},
"homepage": "https://github.com/crazycodeboy/react-native-easy-toast#readme",
"dependencies": {
"prop-types": "^15.5.10"
}
"homepage": "https://github.com/crazycodeboy/react-native-easy-toast#readme"
}

0 comments on commit 19e453f

Please sign in to comment.