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
ba810383
Commit
ba810383
authored
Aug 31, 2016
by
Gant Laborde
Committed by
GitHub
Aug 31, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #71 from bjornorri/fix-country-code-crash
Avoid crash when country code is nil
parents
99dffc4d
ea6a0c4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RNDeviceInfo.m
RNDeviceInfo/RNDeviceInfo.m
+1
-1
No files found.
RNDeviceInfo/RNDeviceInfo.m
View file @
ba810383
...
@@ -163,7 +163,7 @@ RCT_EXPORT_MODULE()
...
@@ -163,7 +163,7 @@ RCT_EXPORT_MODULE()
@"deviceId"
:
self
.
deviceId
,
@"deviceId"
:
self
.
deviceId
,
@"deviceName"
:
currentDevice
.
name
,
@"deviceName"
:
currentDevice
.
name
,
@"deviceLocale"
:
self
.
deviceLocale
,
@"deviceLocale"
:
self
.
deviceLocale
,
@"deviceCountry"
:
self
.
deviceCountry
,
@"deviceCountry"
:
self
.
deviceCountry
?:
[
NSNull
null
]
,
@"uniqueId"
:
uniqueId
,
@"uniqueId"
:
uniqueId
,
@"bundleId"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleIdentifier"
],
@"bundleId"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleIdentifier"
],
@"appVersion"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleShortVersionString"
],
@"appVersion"
:
[[
NSBundle
mainBundle
]
objectForInfoDictionaryKey
:
@"CFBundleShortVersionString"
],
...
...
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