From b110e925b99e8bd21de695b3c075b03d7b14efe5 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Wed, 6 Nov 2024 07:23:29 +0100 Subject: [PATCH 1/4] Fix example app build for iOS (#536) --- .github/workflows/build-ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index 2b820cc8..ec0b8dc0 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -80,4 +80,4 @@ jobs: - name: Build app working-directory: example - run: npx react-native@latest run-ios --no-packager + run: npx react-native run-ios --no-packager From e9ad71f2d94cc306fbedbe3529ef572669681b85 Mon Sep 17 00:00:00 2001 From: OSBotify Date: Wed, 6 Nov 2024 06:25:08 +0000 Subject: [PATCH 2/4] Bump version to 0.1.182 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index afdb3f25..0bd03a1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@expensify/react-native-live-markdown", - "version": "0.1.181", + "version": "0.1.182", "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.", "main": "lib/commonjs/index", "module": "lib/module/index", From 28f3cfdb06e80ae3d8287e23c739098ad52b5dba Mon Sep 17 00:00:00 2001 From: Qichen Zhu <57348009+QichenZhu@users.noreply.github.com> Date: Wed, 6 Nov 2024 19:33:59 +1300 Subject: [PATCH 3/4] Fix emoji font size measurement on Android (#538) --- .../com/expensify/livemarkdown/spans/MarkdownEmojiSpan.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/expensify/livemarkdown/spans/MarkdownEmojiSpan.java b/android/src/main/java/com/expensify/livemarkdown/spans/MarkdownEmojiSpan.java index 7655bc70..e6654327 100644 --- a/android/src/main/java/com/expensify/livemarkdown/spans/MarkdownEmojiSpan.java +++ b/android/src/main/java/com/expensify/livemarkdown/spans/MarkdownEmojiSpan.java @@ -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); } } From 4a62d9b1c58c1800c8c79fc6a3c66a3e724064b5 Mon Sep 17 00:00:00 2001 From: OSBotify Date: Wed, 6 Nov 2024 06:35:42 +0000 Subject: [PATCH 4/4] Bump version to 0.1.183 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0bd03a1f..e9845f84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@expensify/react-native-live-markdown", - "version": "0.1.182", + "version": "0.1.183", "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.", "main": "lib/commonjs/index", "module": "lib/module/index",