mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-28 04:55:12 +00:00
[web] Remove incorrect preserveAspectRatio logic
This commit is contained in:
@@ -91,12 +91,6 @@ function prepare(props) {
|
||||
styles,
|
||||
);
|
||||
|
||||
// We provide a default of `xMidYMid` if aspectRatio is not specified with align information.
|
||||
const preserve = clean.preserveAspectRatio;
|
||||
if (preserve && preserve !== 'none' && !~preserve.indexOf(' ')) {
|
||||
clean.preserveAspectRatio = 'xMidYMid ' + preserve;
|
||||
}
|
||||
|
||||
return clean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user