mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
chore(readme): fix #1272 linearGradient example
This commit is contained in:
@@ -949,8 +949,8 @@ Linear gradients can be defined as horizontal, vertical or angular gradients:
|
||||
```jsx
|
||||
<Svg height="150" width="300">
|
||||
<Defs>
|
||||
<LinearGradient id="grad" x1="0" y1="0" x2="170" y2="0">
|
||||
<Stop offset="0" stopColor="rgb(255,255,0)" stopOpacity="0" />
|
||||
<LinearGradient id="grad" x1="0" y1="0" x2="1" y2="0">
|
||||
<Stop offset="0" stopColor="#FFD080" stopOpacity="1" />
|
||||
<Stop offset="1" stopColor="red" stopOpacity="1" />
|
||||
</LinearGradient>
|
||||
</Defs>
|
||||
|
||||
Reference in New Issue
Block a user