alwx / react-native-http-bridge

HTTP server for React Native
118 stars 78 forks source link

Bugfix: stop didn't actually remove listeners #12

Closed harryeakins closed 4 years ago

harryeakins commented 5 years ago

DeviceEventEmitter.removeListener requires the listener to be passed in as the second argument. Without this, it does nothing.

DeviceEventEmitter.removeAllListeners will remove all listeners for a given event.

alwx commented 4 years ago

It took me a while to check it (sorry), but thanks for it! I really appreciate the work you've done, @harryeakins. Merged!