Skip to content

Commit

Permalink
Fix emoji font size measurement on Android (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
QichenZhu authored Nov 6, 2024
1 parent e9ad71f commit 28f3cfd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import android.text.style.AbsoluteSizeSpan;

import com.facebook.react.uimanager.PixelUtil;

public class MarkdownEmojiSpan extends AbsoluteSizeSpan implements MarkdownSpan {
public MarkdownEmojiSpan(float fontSize) {
super((int) fontSize, true);
super((int) PixelUtil.toPixelFromDIP(fontSize), false);
}
}

0 comments on commit 28f3cfd

Please sign in to comment.