1 parent 43b8287 commit 4c47809Copy full SHA for 4c47809
1 file changed
android/src/main/java/com/swmansion/enriched/textinput/MeasurementStore.kt
@@ -137,7 +137,7 @@ object MeasurementStore {
137
props: ReadableMap?,
138
): Float {
139
val propsFontSize = props?.getDouble("fontSize")?.toFloat()
140
- if (propsFontSize == null) return defaultView.textSize
+ if (propsFontSize == null || propsFontSize <= 0) return defaultView.textSize
141
142
return ceil(pixelFromSpOrDp(propsFontSize, allowFontScalingFromProps(props)))
143
}
0 commit comments