Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-device-info
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-device-info
Commits
50357ab7
Commit
50357ab7
authored
Sep 25, 2017
by
Gant Laborde
Committed by
GitHub
Sep 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #230 from nolan-m/update-ios-device-list
Add support for new iPhone, iPad, and Apple TV models
parents
9887f878
07a2925f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
RNDeviceInfo.m
RNDeviceInfo/RNDeviceInfo.m
+11
-3
No files found.
RNDeviceInfo/RNDeviceInfo.m
View file @
50357ab7
...
@@ -95,9 +95,12 @@ RCT_EXPORT_MODULE()
...
@@ -95,9 +95,12 @@ RCT_EXPORT_MODULE()
@"iPhone9,3"
:
@"iPhone 7"
,
// (model A1778 | Global)
@"iPhone9,3"
:
@"iPhone 7"
,
// (model A1778 | Global)
@"iPhone9,2"
:
@"iPhone 7 Plus"
,
// (model A1661 | CDMA)
@"iPhone9,2"
:
@"iPhone 7 Plus"
,
// (model A1661 | CDMA)
@"iPhone9,4"
:
@"iPhone 7 Plus"
,
// (model A1784 | Global)
@"iPhone9,4"
:
@"iPhone 7 Plus"
,
// (model A1784 | Global)
@"iPhone10,3"
:
@"iPhone X"
,
//
@"iPhone10,3"
:
@"iPhone X"
,
// (model A1865, A1902)
@"iPhone10,4"
:
@"iPhone 8"
,
//
@"iPhone10,6"
:
@"iPhone X"
,
// (model A1901)
@"iPhone10,5"
:
@"iPhone 8 Plus"
,
//
@"iPhone10,1"
:
@"iPhone 8"
,
// (model A1863, A1906, A1907)
@"iPhone10,4"
:
@"iPhone 8"
,
// (model A1905)
@"iPhone10,2"
:
@"iPhone 8 Plus"
,
// (model A1864, A1898, A1899)
@"iPhone10,5"
:
@"iPhone 8 Plus"
,
// (model A1897)
@"iPad4,1"
:
@"iPad Air"
,
// 5th Generation iPad (iPad Air) - Wifi
@"iPad4,1"
:
@"iPad Air"
,
// 5th Generation iPad (iPad Air) - Wifi
@"iPad4,2"
:
@"iPad Air"
,
// 5th Generation iPad (iPad Air) - Cellular
@"iPad4,2"
:
@"iPad Air"
,
// 5th Generation iPad (iPad Air) - Cellular
@"iPad4,3"
:
@"iPad Air"
,
// 5th Generation iPad (iPad Air)
@"iPad4,3"
:
@"iPad Air"
,
// 5th Generation iPad (iPad Air)
...
@@ -115,10 +118,15 @@ RCT_EXPORT_MODULE()
...
@@ -115,10 +118,15 @@ RCT_EXPORT_MODULE()
@"iPad6,4"
:
@"iPad Pro 9.7-inch"
,
// iPad Pro 9.7-inch
@"iPad6,4"
:
@"iPad Pro 9.7-inch"
,
// iPad Pro 9.7-inch
@"iPad6,7"
:
@"iPad Pro 12.9-inch"
,
// iPad Pro 12.9-inch
@"iPad6,7"
:
@"iPad Pro 12.9-inch"
,
// iPad Pro 12.9-inch
@"iPad6,8"
:
@"iPad Pro 12.9-inch"
,
// iPad Pro 12.9-inch
@"iPad6,8"
:
@"iPad Pro 12.9-inch"
,
// iPad Pro 12.9-inch
@"iPad7,1"
:
@"iPad Pro 12.9-inch"
,
// 2nd Generation iPad Pro 12.5-inch - Wifi
@"iPad7,2"
:
@"iPad Pro 12.9-inch"
,
// 2nd Generation iPad Pro 12.5-inch - Cellular
@"iPad7,3"
:
@"iPad Pro 10.5-inch"
,
// iPad Pro 12.5-inch - Wifi
@"iPad7,4"
:
@"iPad Pro 10.5-inch"
,
// iPad Pro 12.5-inch - Cellular
@"AppleTV2,1"
:
@"Apple TV"
,
// Apple TV (2nd Generation)
@"AppleTV2,1"
:
@"Apple TV"
,
// Apple TV (2nd Generation)
@"AppleTV3,1"
:
@"Apple TV"
,
// Apple TV (3rd Generation)
@"AppleTV3,1"
:
@"Apple TV"
,
// Apple TV (3rd Generation)
@"AppleTV3,2"
:
@"Apple TV"
,
// Apple TV (3rd Generation - Rev A)
@"AppleTV3,2"
:
@"Apple TV"
,
// Apple TV (3rd Generation - Rev A)
@"AppleTV5,3"
:
@"Apple TV"
,
// Apple TV (4th Generation)
@"AppleTV5,3"
:
@"Apple TV"
,
// Apple TV (4th Generation)
@"AppleTV6,2"
:
@"Apple TV 4K"
,
// Apple TV 4K
};
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment