From e7f4acb3feaaa7b167bcf11af059f72e1fa553b0 Mon Sep 17 00:00:00 2001 From: haseq Date: Tue, 11 Oct 2022 15:49:13 +0900 Subject: [PATCH] fix removeSubscription is not a function --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3a7286f..2998f37 100644 --- a/index.js +++ b/index.js @@ -92,7 +92,7 @@ export const useBluetoothStatus = () => { setStatus(nativeState === "on"); }); return () => { - bluetoothEvent.removeSubscription(subscription); + subscription.remove(); }; }, []);