Add swipe-to-delete functionality for requests and improve QR Code scanning
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user