You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If style.lineHeight is undefined and markdownStyle.h1.lineHeight is undefined, we don't set CustomLineHeightSpan for headings (the line height is calculated automatically by Android).
If style.lineHeight is defined and markdownStyle.h1.lineHeight is undefined, we don't set CustomLineHeightSpan for headings (React Native applies CustomLineHeightSpan for whole text).
If markdownStyle.h1.lineHeight is defined, we set CustomLineHeightSpan for headings.
The current implementation of
MarkdownLineHeightSpan
is a bit tricky:react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/spans/MarkdownLineHeightSpan.java
Lines 6 to 18 in b753c7a
Also, we need to obtain information about existing spans before applying
MarkdownLineHeightSpan
:react-native-live-markdown/android/src/main/java/com/expensify/livemarkdown/MarkdownUtils.java
Lines 149 to 157 in b753c7a
The objective of this task is to eliminate division by 4 as well as calling
.getSpans()
method if needed.The text was updated successfully, but these errors were encountered: