From 071569e77f3a636a59ef8b6a1df1ef400198203b Mon Sep 17 00:00:00 2001 From: Alessandro Lion <39250826+tastydev@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:26:38 +0200 Subject: [PATCH] feat(NfcManagerIOS): bind native session available methods --- src/NfcManagerIOS.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NfcManagerIOS.js b/src/NfcManagerIOS.js index 2060c1d..34b3308 100644 --- a/src/NfcManagerIOS.js +++ b/src/NfcManagerIOS.js @@ -91,6 +91,12 @@ class NfcManagerIOS extends NfcManagerBase { callNative('invalidateSessionWithError', [errorMessage]), ); + isSessionAvailableIOS = async () => + handleNativeException(callNative('isSessionAvailable')); + + isTagSessionAvailableIOS = async () => + handleNativeException(callNative('isTagSessionAvailable')); + // ------------------------------------- // (iOS) NfcTech.MifareIOS API // -------------------------------------