import React, { Component } from 'react'; import Svg, { G, Circle, Line, Rect, Text, Use } from 'react-native-svg'; class GExample extends Component{ static title = 'G children props inherit'; constructor() { super(...arguments); this.state = { fill: 'purple' }; } componentDidMount = () => { setTimeout(() => { if (!this._unmounted) { this.setState({ fill: '#856' }); } }, 2000); }; componentWillUnmount = () => { this._unmounted = true; }; render() { return ; } } class GTransform extends Component{ static title = 'G transform'; render() { return Text grouped with shapes ; } } const icon = ; const samples = [GExample, GTransform]; export { icon, samples };