mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +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 displayName = 'Svg';
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
width: '100%',
|
|
||||||
height: '100%',
|
|
||||||
preserveAspectRatio: 'xMidYMid meet',
|
preserveAspectRatio: 'xMidYMid meet',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -120,8 +118,8 @@ export default class Svg extends Shape<
|
|||||||
};
|
};
|
||||||
const {
|
const {
|
||||||
color,
|
color,
|
||||||
width,
|
width = '100%',
|
||||||
height,
|
height = '100%',
|
||||||
focusable,
|
focusable,
|
||||||
|
|
||||||
// Inherited G properties
|
// Inherited G properties
|
||||||
|
|||||||
Reference in New Issue
Block a user