Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Doko-Demo-Doa committed Mar 27, 2023
1 parent e0e9fac commit db9a4e5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
10 changes: 0 additions & 10 deletions android/src/main/java/com/clipsub/RNShake/RNShakeEventModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
}
}
16 changes: 0 additions & 16 deletions ios/RNShakeEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit db9a4e5

Please sign in to comment.