Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix(hasNotch): Missing device name for iPhone 13 (#1309)
Browse files Browse the repository at this point in the history
* fix(hasNotch): Missing device name for iPhone 13

Adds missing device name by code for iPhone 13 lineup. Relates to #1307
Updated device code to name mapping to match the information in the sqlite3 device traits database provided with Xcode RC.
  • Loading branch information
rolfb authored Sep 16, 2021
1 parent f4dc5ea commit 0bc979e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/RNDeviceInfo/RNDeviceInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,15 @@ - (NSDictionary *) getDeviceNamesByCode {
@"iPhone12,1": @"iPhone 11",
@"iPhone12,3": @"iPhone 11 Pro",
@"iPhone12,5": @"iPhone 11 Pro Max",
@"iPhone12,8": @"iPhone SE", // (2nd Generation iPhone SE),
@"iPhone13,1": @"iPhone 12 mini",
@"iPhone13,2": @"iPhone 12",
@"iPhone13,3": @"iPhone 12 Pro",
@"iPhone13,4": @"iPhone 12 Pro Max",
@"iPhone12,8": @"iPhone SE", // (2nd Generation iPhone SE)
@"iPhone14,4": @"iPhone 13 mini",
@"iPhone14,5": @"iPhone 13",
@"iPhone14,2": @"iPhone 13 Pro",
@"iPhone14,3": @"iPhone 13 Pro Max",
@"iPad4,1": @"iPad Air", // 5th Generation iPad (iPad Air) - Wifi
@"iPad4,2": @"iPad Air", // 5th Generation iPad (iPad Air) - Cellular
@"iPad4,3": @"iPad Air", // 5th Generation iPad (iPad Air)
Expand Down

0 comments on commit 0bc979e

Please sign in to comment.