mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: focus keyboard if biometry is disabled
This commit is contained in:
committed by
Abdullah Atta
parent
b07d7e4f3f
commit
71811ebf0d
@@ -289,6 +289,14 @@ const AppLocked = () => {
|
||||
keyboardType={
|
||||
appLockHasPasswordSecurity ? keyboardType : "default"
|
||||
}
|
||||
onLayout={async () => {
|
||||
if (
|
||||
!biometricsAuthEnabled ||
|
||||
!(await BiometricService.isBiometryAvailable())
|
||||
) {
|
||||
passwordInputRef.current?.focus();
|
||||
}
|
||||
}}
|
||||
placeholder={
|
||||
appLockHasPasswordSecurity
|
||||
? keyboardType === "numeric"
|
||||
|
||||
Reference in New Issue
Block a user