mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
remove the y check
This commit is contained in:
@@ -123,8 +123,10 @@ export default function(props, container, ref) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let posY = null;
|
let posY = null;
|
||||||
if (!_.isNil(y) && fontProps.fontSize) {
|
if (fontProps.fontSize) {
|
||||||
posY = (parseFloat(y || 0) - parseFloat(fontProps.fontSize || 0)).toString();
|
posY = (parseFloat(y || 0) - parseFloat(fontProps.fontSize || 0)).toString();
|
||||||
|
} else if (y) {
|
||||||
|
posY = y.toString();
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
textAnchor: anchors[textAnchor] || 0,
|
textAnchor: anchors[textAnchor] || 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user