Skip to content

Commit

Permalink
Merge pull request #742 from tylerdgenius/@feat/module-creation-error
Browse files Browse the repository at this point in the history
Fix: solved error on ios that prevented the creation of the contacts module
  • Loading branch information
morenoh149 authored Aug 13, 2024
2 parents 5d17184 + db2bd71 commit 4f7ffb7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ios/RCTContacts/RCTContacts.m
Original file line number Diff line number Diff line change
Expand Up @@ -1221,9 +1221,13 @@ + (NSData*) loadImageAsset:(NSURL*)assetURL {
}
}

RCT_EXPORT_METHOD(writePhotoToPath:(RCTResponseSenderBlock) rejecter:(RCTPromiseRejectBlock) reject)
RCT_EXPORT_METHOD(writePhotoToPath:(nonnull NSString *)path resolver:(RCTPromiseResolveBlock) resolve rejecter:(RCTPromiseRejectBlock) reject)
{
reject(@"Error", @"not implemented", nil);
@try {
//Nothing is implemented here
} @catch (NSException *exception) {
reject(@"Error", @"not implemented", nil);
}
}

-(CNContactStore*) contactsStore: (RCTPromiseRejectBlock) reject {
Expand Down

0 comments on commit 4f7ffb7

Please sign in to comment.