mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-19 13:35:11 +00:00
Add Text
Add Text
This commit is contained in:
@@ -107,7 +107,7 @@ const styles = StyleSheet.create({
|
||||
});
|
||||
|
||||
|
||||
const names = ['Svg', 'Circle', 'Ellipse', 'G', 'Path', 'Polygon', 'Polyline', 'Line', 'Rect'];
|
||||
const names = ['Svg', 'Circle', 'Ellipse', 'G', 'Text', 'Path', 'Polygon', 'Polyline', 'Line', 'Rect'];
|
||||
|
||||
class ArtSvgExample extends Component {
|
||||
constructor() {
|
||||
@@ -157,7 +157,7 @@ class ArtSvgExample extends Component {
|
||||
Animated.timing(this.state.scale, {
|
||||
toValue: 0,
|
||||
easing: Easing.in(Easing.back(2))
|
||||
}).start(() => this.setState({
|
||||
}).start(({finished}) => finished && this.setState({
|
||||
modal: false,
|
||||
content: null
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user