mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
fix: do not resolve asset url for every object on web. (#2419)
# Summary Do not resolve asset url for every object when href is undefined on WebShape.
This commit is contained in:
@@ -121,7 +121,7 @@ export const prepare = <T extends BaseProps>(
|
||||
if (onPress !== null) {
|
||||
clean.onClick = props.onPress;
|
||||
}
|
||||
if (props.href !== null) {
|
||||
if (props.href !== null && props.href !== undefined) {
|
||||
clean.href = resolveAssetUri(props.href)?.uri;
|
||||
}
|
||||
return clean;
|
||||
|
||||
Reference in New Issue
Block a user