Upgrade react-native to 0.44.0, Upgrade peerDependencies

This commit is contained in:
陈阳
2017-05-02 11:57:56 +08:00
parent 2fd178da28
commit beb0ee9506
4 changed files with 7 additions and 5 deletions

View File

@@ -629,7 +629,7 @@ The <ClipPath> SVG element defines a clipping path. A clipping path is used/refe
width="100"
>
<Defs>
<RadialGradient id="grad" cx="50%" cy="50%" rx="50%" ry="50%" fx="50%" fy="50%">
<RadialGradient id="grad" cx="50%" cy="50%" rx="50%" ry="50%" fx="50%" fy="50%" gradientUnits="userSpaceOnUse">
<Stop
offset="0%"
stopColor="#ff0"
@@ -726,7 +726,7 @@ The <RadialGradient> element is used to define a radial gradient. The <RadialGra
width="300"
>
<Defs>
<RadialGradient id="grad" cx="150" cy="75" rx="85" ry="55" fx="150" fy="75">
<RadialGradient id="grad" cx="150" cy="75" rx="85" ry="55" fx="150" fy="75" gradientUnits="userSpaceOnUse">
<Stop
offset="0"
stopColor="#ff0"

View File

@@ -11,6 +11,7 @@ export default class extends Component{
x2: numberProp.isRequired,
y1: numberProp.isRequired,
y2: numberProp.isRequired,
gradientUnits: PropTypes.oneOf(['objectBoundingBox', 'userSpaceOnUse']),
id: PropTypes.string.isRequired
};

View File

@@ -14,6 +14,7 @@ export default class extends Component{
cx: numberProp.isRequired,
cy: numberProp.isRequired,
r: numberProp,
gradientUnits: PropTypes.oneOf(['objectBoundingBox', 'userSpaceOnUse']),
id: PropTypes.string.isRequired
};

View File

@@ -1,5 +1,5 @@
{
"version": "5.1.7",
"version": "5.1.8",
"name": "react-native-svg",
"description": "SVG library for react-native",
"repository": {
@@ -22,8 +22,8 @@
"lint": "eslint ./"
},
"peerDependencies": {
"react-native": ">=0.40.0",
"react": ">=15.4.0"
"react-native": ">=0.44.0",
"react": "16.0.0-alpha.6"
},
"dependencies": {
"color": "^0.11.1",