import React, { Component } from 'react'; import Svg, { Text, LinearGradient, Stop, Defs } 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 = 'Transform the text'; render() { return We go up, then we go down, then up again ; } } const icon = ; const samples = [ TextExample, TextRotate, TextStroke, TextFill, TextPath ]; export { icon, samples };