Add swipe-to-delete functionality for requests and improve QR Code scanning

This commit is contained in:
2026-02-17 16:12:15 +01:00
parent 68e25fac71
commit ed25c5299d
7 changed files with 249 additions and 73 deletions

View File

@@ -21,8 +21,7 @@ export default function AttendanceScreen() {
const [refreshing, setRefreshing] = useState(false);
const checkNfcAvailability = async () => {
// TODO: add env variable to disable NFC checks in development or if not needed
// if (!ENABLE_NFC) return;
if (process.env.EXPO_PUBLIC_ENABLE_NFC!=='true') return;
try {
const isSupported = await NfcManager.isSupported();
if (isSupported) setScannerType('nfc');
@@ -252,4 +251,4 @@ export default function AttendanceScreen() {
)}
</View>
);
}
}