diff --git a/android/src/main/java/com/clipsub/RNShake/RNShakeEventModule.java b/android/src/main/java/com/clipsub/RNShake/RNShakeEventModule.java index bd4b806..0bfb98c 100644 --- a/android/src/main/java/com/clipsub/RNShake/RNShakeEventModule.java +++ b/android/src/main/java/com/clipsub/RNShake/RNShakeEventModule.java @@ -41,14 +41,4 @@ private void sendEvent(ReactContext reactContext, reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(eventName, params); } } - - @ReactMethod - public void addListener(String eventName) { - /* Required for RN built-in Event Emitter Calls. */ - } - - @ReactMethod - public void removeListeners(Integer count) { - /* Required for RN built-in Event Emitter Calls. */ - } } diff --git a/ios/RNShakeEvent.m b/ios/RNShakeEvent.m index 5c7b1b8..7ba8902 100644 --- a/ios/RNShakeEvent.m +++ b/ios/RNShakeEvent.m @@ -63,14 +63,6 @@ - (void)sendEvent { [self sendEventWithName:RNShakeEventName body:nil]; } -RCT_EXPORT_METHOD(addListener : (NSString *)eventName) { - // Keep: Required for RN built in Event Emitter Calls. -} - -RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) { - // Keep: Required for RN built in Event Emitter Calls. -} - @end #else @@ -116,14 +108,6 @@ + (BOOL)requiresMainQueueSetup { return YES; } -RCT_EXPORT_METHOD(addListener : (NSString *)eventName) { - // Keep: Required for RN built in Event Emitter Calls. -} - -RCT_EXPORT_METHOD(removeListeners : (NSInteger)count) { - // Keep: Required for RN built in Event Emitter Calls. -} - @end #endif diff --git a/package.json b/package.json index ad4970d..3093529 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-shake", - "version": "5.3.0", + "version": "5.3.1", "description": "A library to detect shake event on Android and iOS", "homepage": "https://github.com/Doko-Demo-Doa/react-native-shake", "main": "lib/index.js",