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(); }; }, []);