From 9fd27706bb0da7621d4027d020fed68b448af1db Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Sat, 18 Jan 2025 21:15:46 -0800 Subject: [PATCH] tweaks for input placeholders to show in android --- app/client/mobile/src/settings/Settings.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/client/mobile/src/settings/Settings.tsx b/app/client/mobile/src/settings/Settings.tsx index ba61eae8..2549fa09 100644 --- a/app/client/mobile/src/settings/Settings.tsx +++ b/app/client/mobile/src/settings/Settings.tsx @@ -995,7 +995,8 @@ export function Settings({showLogout}: {showLogout: boolean}) { autoCapitalize="none" autoComplete="off" autoCorrect={false} - label={state.strings.username} + label={Platform.OS==='ios' ? state.strings.username : undefined} + placeholder={Platform.OS!=='ios' ? state.strings.username : undefined} value={state.handle} left={} right={ @@ -1016,7 +1017,8 @@ export function Settings({showLogout}: {showLogout: boolean}) { autoComplete="off" autoCorrect={false} value={state.password} - label={state.strings.password} + label={Platform.OS==='ios' ? state.strings.password : undefined} + placeholder={Platform.OS!=='ios' ? state.strings.password : undefined} secureTextEntry={!showPassword} left={} right={ @@ -1035,7 +1037,8 @@ export function Settings({showLogout}: {showLogout: boolean}) { autoComplete="off" autoCorrect={false} value={state.confirm} - label={state.strings.confirmPassword} + label={Platform.OS==='ios' ? state.strings.confirmPassword : undefined} + placeholder={Platform.OS!=='ios' ? state.strings.confirmPassword : undefined} secureTextEntry={!showConfirm} left={} right={