import React, {
Component
} from 'react';
import Svg, {
Text,
LinearGradient,
Stop,
Defs,
Path,
G,
TSpan
} from 'react-native-svg';
class TextExample extends Component{
static title = 'Text';
render() {
return ;
}
}
class TextRotate extends Component{
static title = 'Transform the text';
render() {
return ;
}
}
// TODO: iOS not support text stroke with pattern
class TextStroke extends Component{
static title = 'Stroke the text';
render() {
return ;
}
}
class TextFill extends Component{
static title = 'Fill the text with LinearGradient';
render() {
return ;
}
}
class TextPath extends Component{
static title = 'Draw text along path';
render() {
const path = `
M 10 20
C 20 10 30 0 40 10
C 50 20 60 30 70 20
C 80 10 90 10 90 10
`;
return ;
}
}
class TSpanExample extends Component{
static title = 'TSpan nest';
render() {
return ;
}
}
const icon = ;
const samples = [
TextExample,
TextRotate,
TextStroke,
TextFill,
TextPath,
TSpanExample
];
export {
icon,
samples
};