import React, {
Component
} from 'react';
import Svg, {
Text,
LinearGradient,
Stop,
Defs
} 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';
constructor(...args) {
super(...args);
this.state = {
key: 0
};
}
componentDidMount() {
let self = this;
//setInterval(function () {
// self.setState({
// key: self.state.key + 1
// });
//}, 50);
}
render() {
return ;
}
}
const icon = ;
const samples = [
TextExample,
TextRotate,
TextStroke,
TextFill,
TextPath
];
export {
icon,
samples
};