Skip to content

Commit

Permalink
Merge pull request #658 from NSProgrammer/patch-1
Browse files Browse the repository at this point in the history
Update RCTContacts.m to use correct UIBarButtonItemStyle constant
  • Loading branch information
morenoh149 authored Feb 4, 2022
2 parents e202807 + 1a742ae commit 4b81dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RCTContacts/RCTContacts.m
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ -(NSString *) getContact:(NSString *)recordID
CNContactViewController *contactViewController = [CNContactViewController viewControllerForContact:contact];

// Add a cancel button which will close the view
contactViewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:backTitle == nil ? @"Cancel" : backTitle style:UIBarButtonSystemItemCancel target:self action:@selector(cancelContactForm)];
contactViewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:backTitle == nil ? @"Cancel" : backTitle style:UIBarButtonItemStyleDone target:self action:@selector(cancelContactForm)];
contactViewController.delegate = self;


Expand Down

0 comments on commit 4b81dbd

Please sign in to comment.