diff --git a/app/login.tsx b/app/login.tsx
index d941cece..5298467d 100644
--- a/app/login.tsx
+++ b/app/login.tsx
@@ -264,6 +264,12 @@ const Login: React.FC = () => {
onChangeText={(text: string) =>
setCredentials({ ...credentials, username: text })
}
+ onEndEditing={(e) => {
+ const newValue = e.nativeEvent.text;
+ if (newValue && newValue !== credentials.username) {
+ setCredentials({ ...credentials, username: newValue });
+ }
+ }}
value={credentials.username}
keyboardType='default'
returnKeyType='done'
@@ -280,6 +286,12 @@ const Login: React.FC = () => {
onChangeText={(text: string) =>
setCredentials({ ...credentials, password: text })
}
+ onEndEditing={(e) => {
+ const newValue = e.nativeEvent.text;
+ if (newValue && newValue !== credentials.password) {
+ setCredentials({ ...credentials, password: newValue });
+ }
+ }}
value={credentials.password}
secureTextEntry
keyboardType='default'
@@ -292,7 +304,12 @@ const Login: React.FC = () => {
/>
-
+