mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 13:38:30 +00:00
fix: #1262 allow setting width and height using stylesheet
This commit is contained in:
@@ -53,8 +53,6 @@ export default class Svg extends Shape<
|
||||
static displayName = 'Svg';
|
||||
|
||||
static defaultProps = {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
preserveAspectRatio: 'xMidYMid meet',
|
||||
};
|
||||
|
||||
@@ -120,8 +118,8 @@ export default class Svg extends Shape<
|
||||
};
|
||||
const {
|
||||
color,
|
||||
width,
|
||||
height,
|
||||
width = '100%',
|
||||
height = '100%',
|
||||
focusable,
|
||||
|
||||
// Inherited G properties
|
||||
|
||||
Reference in New Issue
Block a user