@@ -179,7 +179,7 @@ - (void) listener:(NSNotification *) notification
179
179
if (@available (iOS 14 , *)) {
180
180
UIPasteboard *board = [UIPasteboard generalPasteboard ];
181
181
[board detectPatternsForPatterns: [NSSet setWithObjects: UIPasteboardDetectionPatternProbableWebURL, UIPasteboardDetectionPatternNumber, UIPasteboardDetectionPatternProbableWebSearch, nil ]
182
- completionHandler: ^(NSSet <UIPasteboardDetectionPattern> * _Nullable set, NSError * _Nullable error) {
182
+ completionHandler: ^(NSSet <UIPasteboardDetectionPattern> * _Nullable set, __unused NSError * _Nullable error) {
183
183
BOOL numberPresent = NO ;
184
184
for (NSString *type in set) {
185
185
if ([type isEqualToString: UIPasteboardDetectionPatternNumber]) {
@@ -199,7 +199,7 @@ - (void) listener:(NSNotification *) notification
199
199
if (@available (iOS 14 , *)) {
200
200
UIPasteboard *board = [UIPasteboard generalPasteboard ];
201
201
[board detectPatternsForPatterns: [NSSet setWithObjects: UIPasteboardDetectionPatternProbableWebURL, UIPasteboardDetectionPatternNumber, UIPasteboardDetectionPatternProbableWebSearch, nil ]
202
- completionHandler: ^(NSSet <UIPasteboardDetectionPattern> * _Nullable set, NSError * _Nullable error) {
202
+ completionHandler: ^(NSSet <UIPasteboardDetectionPattern> * _Nullable set, __unused NSError * _Nullable error) {
203
203
BOOL webURLPresent = NO ;
204
204
for (NSString *type in set) {
205
205
if ([type isEqualToString: UIPasteboardDetectionPatternProbableWebURL]) {
@@ -238,7 +238,7 @@ - (void) listener:(NSNotification *) notification
238
238
// Keep: Required for RN built in Event Emitter Calls.
239
239
}
240
240
241
- RCT_EXPORT_METHOD (removeListeners : (NSInteger )count) {
241
+ RCT_EXPORT_METHOD (removeListeners : (double )count) {
242
242
// Keep: Required for RN built in Event Emitter Calls.
243
243
}
244
244
0 commit comments