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