This commit is contained in:
Horcrux
2016-07-27 18:10:40 +08:00
parent fece0c0812
commit ab064d86e0
7 changed files with 81 additions and 19 deletions

View File

@@ -104,11 +104,21 @@ class SvgViewbox extends Component{
}
}
class NullComponent extends Component {
render() {
return null;
}
}
class SvgLayout extends Component{
static title = 'SVG with flex layout';
render() {
return <View style={styles.container}>
<Svg style={styles.svg}>
<G>
<NullComponent />
</G>
<NullComponent />
<Rect
width="80%"
height="80%"