Update mobile number validation to 9 digits and adjust placeholder; update Gradle init scripts and add new launcher icon
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
arguments=--init-script C\:\\Users\\Lincpay\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.53.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\init\\init.gradle --init-script C\:\\Users\\Lincpay\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.53.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\protobuf\\init.gradle --init-script C\:\\Users\\Lincpay\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.53.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\kotlin\\init.gradle --init-script C\:\\Users\\Lincpay\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.53.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\groovy\\init.gradle
|
||||
arguments=--init-script C\:\\Users\\Lincpay\\AppData\\Roaming\\Antigravity\\User\\globalStorage\\redhat.java\\1.52.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\init\\init.gradle --init-script C\:\\Users\\Lincpay\\AppData\\Roaming\\Antigravity\\User\\globalStorage\\redhat.java\\1.52.0\\config_win\\org.eclipse.osgi\\58\\0\\.cp\\gradle\\protobuf\\init.gradle
|
||||
auto.sync=false
|
||||
build.scans.enabled=false
|
||||
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
@@ -52,10 +52,10 @@ export default function LoginScreen() {
|
||||
);
|
||||
|
||||
const handleContinue = async () => {
|
||||
if (!/^\d{10}$/.test(mobile)) {
|
||||
setError('Please enter a 10-digit mobile number');
|
||||
if (!/^\d{9}$/.test(mobile)) {
|
||||
setError('Please enter a 9-digit mobile number');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
setError('');
|
||||
try {
|
||||
@@ -96,7 +96,7 @@ export default function LoginScreen() {
|
||||
<View style={styles.formSection}>
|
||||
<CustomInput
|
||||
label="Mobile Number"
|
||||
placeholder="e.g. 9876543210"
|
||||
placeholder="e.g. 987654321"
|
||||
value={mobile}
|
||||
onChangeText={(text) => {
|
||||
setMobile(text.replace(/\D/g, ''));
|
||||
@@ -104,7 +104,7 @@ export default function LoginScreen() {
|
||||
if (error) setError('');
|
||||
}}
|
||||
keyboardType="phone-pad"
|
||||
maxLength={10}
|
||||
maxLength={9}
|
||||
icon="call-outline"
|
||||
error={error}
|
||||
/>
|
||||
|
||||
@@ -161,7 +161,7 @@ export const displayNotification = async (title: string, body: string, data?: an
|
||||
pressAction: {
|
||||
id: 'default',
|
||||
},
|
||||
},
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Error displaying notification:', error);
|
||||
|
||||
Reference in New Issue
Block a user