Skip to content

Commit be7ede9

Browse files
committed
* updated propTypes;
* updated peer dependencies;
1 parent 335d95a commit be7ede9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "react-native-animated-background-color",
3-
"version": "1.0.1",
4-
"description": "A modified React-Native 'View' component that animates it's 'backgroundColor' when 'color' prop changes.",
2+
"name": "react-native-animated-background-color-view",
3+
"version": "1.0.0",
4+
"description": "A modified React Native 'View' component that animates it's 'backgroundColor' when 'color' prop changes.",
55
"main": "index.js",
66
"author": "Joey Schroeder <[email protected]> (joeyschroeder.com)",
77
"homepage": "https://github.com/joeyschroeder/react-native-animated-background-color-view",
@@ -17,15 +17,17 @@
1717
"url": "https://github.com/joeyschroeder/react-native-animated-background-color-view.git"
1818
},
1919
"dependencies": {
20-
"prop-types": "^15.6.1",
21-
"react": "^16.4.1",
22-
"react-native": "^0.55.4"
20+
"prop-types": "^15.6.1"
2321
},
2422
"devDependencies": {
2523
"babel-eslint": "^8.2.3",
2624
"babel-preset-react-native": "^4.0.0",
2725
"eslint": "^4.19.1",
2826
"eslint-plugin-react": "^7.9.1",
2927
"eslint-plugin-react-native": "^3.2.1"
28+
},
29+
"peerDependencies": {
30+
"react": ">= 15 || ~16.0.0-0",
31+
"react-native": ">=0.39"
3032
}
3133
}

src/animated-background-color-view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ AnimatedBackgroundColorView.propTypes = {
102102
color: PropTypes.string,
103103
delay: PropTypes.number,
104104
duration: PropTypes.number,
105-
easing: PropTypes.object,
105+
easing: PropTypes.function,
106106
initialColor: PropTypes.string,
107107
style: ViewPropTypes.style
108108
};

0 commit comments

Comments
 (0)