mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
bump version to 4.1.5
This commit is contained in:
@@ -13,13 +13,29 @@ import Svg, {
|
|||||||
|
|
||||||
class GExample extends Component{
|
class GExample extends Component{
|
||||||
static title = 'G children props inherit';
|
static title = 'G children props inherit';
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super(...arguments);
|
||||||
|
this.state = {
|
||||||
|
fill: 'purple'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount = () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.setState({
|
||||||
|
fill: '#856'
|
||||||
|
});
|
||||||
|
}, 2000);
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <Svg
|
return <Svg
|
||||||
height="100"
|
height="100"
|
||||||
width="100"
|
width="100"
|
||||||
>
|
>
|
||||||
<G
|
<G
|
||||||
fill="purple"
|
fill={this.state.fill}
|
||||||
stroke="pink"
|
stroke="pink"
|
||||||
strokeWidth="3"
|
strokeWidth="3"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "4.1.4",
|
"version": "4.1.5",
|
||||||
"name": "react-native-svg",
|
"name": "react-native-svg",
|
||||||
"description": "SVG library for react-native",
|
"description": "SVG library for react-native",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user