import React, { Component } from 'react'; import Svg, { Text, LinearGradient, Stop, Defs, Path, G } from 'react-native-svg'; class TextExample extends Component{ static title = 'Text'; render() { return I love SVG! ; } } class TextRotate extends Component{ static title = 'Transform the text'; render() { return I love SVG I love SVG I love SVG ; } } // TODO: iOS not support text stroke with pattern class TextStroke extends Component{ static title = 'Stroke the text'; render() { return STROKE TEXT ; } } class TextFill extends Component{ static title = 'Fill the text with LinearGradient'; render() { return FILL TEXT ; } } class TextPath extends Component{ static title = 'Draw text along path'; render() { const path = ` M 0 20 h 10 C 20 10 30 0 40 10 C 50 20 60 30 70 20 C 80 10 90 10 90 10 C 110 20 120 30 120 20 C 140 10 150 10 150 10 a 50 50 0 1 1 20 110 `; return We go up, then we go down, then up again ; } } const icon = ; const samples = [ TextExample, TextRotate, TextStroke, TextFill, TextPath ]; export { icon, samples };