mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-19 21:45:10 +00:00
fix #84
This commit is contained in:
@@ -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%"
|
||||
|
||||
Reference in New Issue
Block a user