Skip to content

Commit 4e5a39f

Browse files
authored
fix(📝): fix bug with halfLeading textStyle prop (#3480)
1 parent f2fe0fa commit 4e5a39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/skia/cpp/api/JsiSkTextStyle.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class JsiSkTextStyle {
137137
}
138138
if (object.hasProperty(runtime, "halfLeading")) {
139139
auto propValue = object.getProperty(runtime, "halfLeading");
140-
retVal.setHalfLeading(propValue.asNumber());
140+
retVal.setHalfLeading(propValue.getBool());
141141
}
142142
if (object.hasProperty(runtime, "letterSpacing")) {
143143
auto propValue = object.getProperty(runtime, "letterSpacing");

0 commit comments

Comments
 (0)