/* eslint-disable */
// tslint:disable max-classes-per-file
import React from 'react';
import * as Svg from 'react-native-svg';
import Example from './Example';
const { LinearGradient, Stop, Defs, Path, G, TSpan, TextPath } = Svg;
class TextExample extends React.Component {
static title = 'Text';
render() {
return (
I love SVG!
);
}
}
class TextRotate extends React.Component {
static title = 'Transform the text';
render() {
return (
I love SVG
I love SVG
I love SVG
);
}
}
class TextStroke extends React.Component {
static title = 'Stroke the text';
render() {
return (
{['STROKE TEXT']}
);
}
}
class TextFill extends React.Component {
static title = 'Fill the text with LinearGradient';
render() {
return (
FILL TEXT
);
}
}
class TextPathExample extends React.Component {
static title = 'Draw text along path';
render() {
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
`;
return (
We go up and down,
then up again
);
}
}
class TSpanExample extends React.Component {
static title = 'TSpan nest';
render() {
return (
tspan line 1
tspan line 2
tspan line 3
12345
6
7
89a
delta on text
);
}
}
const icon = (
字
);
const Text: Example = {
icon,
samples: [TextExample, TextRotate, TextStroke, TextFill, TextPathExample, TSpanExample],
};
export default Text;