The user should get a native notification if they are deemed to be infected.
To do that, move this code from HomeBluetooth screen to App.tsx or somewhere where it makes more sense.
useEffect(() => {
function refresh(): void {
if (NativeModules.ItoBluetooth.isPossiblyInfected() && !hasSeenIDMatch) {
setIDMatchShow(true);
}
}
const interval = setInterval(refresh, 2500);
return (): void => clearInterval(interval);
}, [navigation, hasSeenIDMatch]);