mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 23:54:53 +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 defaultProps = {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
preserveAspectRatio: 'xMidYMid meet',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user