Skip to content

Commit

Permalink
Use constants instead of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Comella committed May 25, 2017
1 parent ec12c02 commit f877700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions React/Modules/RCTAccessibilityManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ - (void)accessibilityAnnouncementDidFinish:(__unused NSNotification *)notificati
{
NSDictionary *userInfo = notification.userInfo;
// Response dictionary to populate the event with.
NSDictionary *response = @{@"announcement": userInfo[@"UIAccessibilityAnnouncementKeyStringValue"],
@"success": userInfo[@"UIAccessibilityAnnouncementKeyWasSuccessful"]};
NSDictionary *response = @{@"announcement": userInfo[UIAccessibilityAnnouncementKeyStringValue],
@"success": userInfo[UIAccessibilityAnnouncementKeyWasSuccessful]};

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Expand Down

0 comments on commit f877700

Please sign in to comment.