mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 16:54:52 +00:00
fix!: #1262 default width and height on svg
BREAKING CHANGE: default size might change if width or height is missing
This commit is contained in:
@@ -53,6 +53,8 @@ export default class Svg extends Shape<
|
|||||||
static displayName = 'Svg';
|
static displayName = 'Svg';
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
preserveAspectRatio: 'xMidYMid meet',
|
preserveAspectRatio: 'xMidYMid meet',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user