Skip to content

Commit

Permalink
Fix warnings: new NativeEventEmitter() was called with a non-null arg…
Browse files Browse the repository at this point in the history
…ument (#207)
  • Loading branch information
espipj authored Oct 20, 2023
1 parent fecf673 commit a2d3c11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ios/RNCClipboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ - (void) listener:(NSNotification *) notification

}

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.
}



Expand Down
8 changes: 8 additions & 0 deletions macos/RNCClipboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ - (dispatch_queue_t)methodQueue
resolve(([pasteboard stringForType:NSPasteboardTypeString] ? : @""));
}

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

0 comments on commit a2d3c11

Please sign in to comment.