Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/core/ui/text-base/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ export class TextBase extends TextBaseCommon {
super.initNativeView();
initializeTextTransformation();
const nativeView = this.nativeTextViewProtected;

// Fix for custom font over-height issue on Android
// Disable font padding to prevent extra spacing around text
nativeView.setIncludeFontPadding(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious @CatchABus do you see any issue with this fix?


this._defaultTransformationMethod = nativeView.getTransformationMethod();
this._defaultMovementMethod = nativeView.getMovementMethod();
this._minHeight = nativeView.getMinHeight();
Expand Down