import React from 'react'; import { Defs, G, LinearGradient, Path, Stop, Svg, Text, TSpan, } from 'react-native-svg'; function TextExample() { return ( I love SVG! ); } TextExample.title = 'Text'; function TextRotate() { return ( I love SVG I love SVG I love SVG ); } TextRotate.title = 'Transform the text'; function TextStroke() { return ( {['STROKE TEXT']} ); } TextStroke.title = 'Stroke the text'; function TextFill() { return ( FILL TEXT ); } TextFill.title = 'Fill the text with LinearGradient'; const path = ` M 10 20 C 40 10 60 0 80 10 C 100 20 120 30 140 20 C 160 10 180 10 180 10 `; function TextPathExample() { return ( TextPath not implemented ); } function TSpanExample() { return ( tspan line 1 tspan line 2 tspan line 3 12345 6 7 89a delta on text ); } TSpanExample.title = 'TSpan nest'; const icon = ( ); const samples = [ TextExample, TextRotate, TextStroke, TextFill, TextPathExample, TSpanExample, ]; export {icon, samples};