is there any way to keep the fingerprint prompt in focus

Thanks in advance.
I am working with react-native-biometrics to integrate the fingerprint sensor. the problem is, whenever it prompts a dialogue box to scan a fingerprint does not stay in focus if touched anywhere else on the screen.
I am experiencing expected behavior on android 11. but on lesser android versions it does not stay focused.
Is it because of the android system? if yes is there any way to optimize that behavior?
Any help will be appreciated.

Source: Android Questions