From 1ed4fa843ab855f77c5b248448abeb3b26dec648 Mon Sep 17 00:00:00 2001 From: Guy Tepper Date: Thu, 16 Apr 2026 08:01:33 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20-=20Fix=20feedback=20email?= =?UTF-8?q?=20body=20showing=20encoded=20characters=20on=20Android?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/screens/settings/settings-about-screen.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/screens/settings/settings-about-screen.tsx b/app/screens/settings/settings-about-screen.tsx index 99e550d5..bb7c115d 100644 --- a/app/screens/settings/settings-about-screen.tsx +++ b/app/screens/settings/settings-about-screen.tsx @@ -51,17 +51,7 @@ const ABOUT_TEXT: TextStyle = { const TWITTER_DEEP_LINK = "twitter://user?screen_name=better_rail" const TWITTER_WEB_URL = "https://x.com/better_rail" -// TODO: Add mail body to iOS - need to understand how to add newlines correctly -const emailBody = Platform.select({ - android: `%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A ---- -App: Better Rail ${getVersion()} (${getBuildNumber()}) -Device: ${getDeviceId()} (${getSystemVersion()}) -App Locale: ${userLocale} -Device Locale: ${deviceLocale} -`, - ios: "", -}) +const emailBody = `\n\n\n\n\n\n\n\n\n---\nApp: Better Rail ${getVersion()} (${getBuildNumber()})\nDevice: ${getDeviceId()} (${getSystemVersion()})\nApp Locale: ${userLocale}\nDevice Locale: ${deviceLocale}\n` export function AboutScreen({ navigation }: SettingsScreenProps) { return ( From 03ee783e6abf221edb41ce13361aea18958f8e51 Mon Sep 17 00:00:00 2001 From: Guy Tepper Date: Thu, 16 Apr 2026 08:12:59 +0200 Subject: [PATCH 2/2] use multi-line template literal for readability --- app/screens/settings/settings-about-screen.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/screens/settings/settings-about-screen.tsx b/app/screens/settings/settings-about-screen.tsx index bb7c115d..d11c841f 100644 --- a/app/screens/settings/settings-about-screen.tsx +++ b/app/screens/settings/settings-about-screen.tsx @@ -51,7 +51,17 @@ const ABOUT_TEXT: TextStyle = { const TWITTER_DEEP_LINK = "twitter://user?screen_name=better_rail" const TWITTER_WEB_URL = "https://x.com/better_rail" -const emailBody = `\n\n\n\n\n\n\n\n\n---\nApp: Better Rail ${getVersion()} (${getBuildNumber()})\nDevice: ${getDeviceId()} (${getSystemVersion()})\nApp Locale: ${userLocale}\nDevice Locale: ${deviceLocale}\n` +const emailBody = ` + + + + +--- +App: Better Rail ${getVersion()} (${getBuildNumber()}) +Device: ${getDeviceId()} (${getSystemVersion()}) +App Locale: ${userLocale} +Device Locale: ${deviceLocale} +` export function AboutScreen({ navigation }: SettingsScreenProps) { return (