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
40e36226
Commit
40e36226
authored
Oct 15, 2017
by
Gant Laborde
Committed by
GitHub
Oct 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #242 from doochik/patch-1
Fix RN 0.48+ warning about requiresMainQueueSetup
parents
218d3e97
f52f97fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
RNDeviceInfo.m
RNDeviceInfo/RNDeviceInfo.m
+3
-5
No files found.
RNDeviceInfo/RNDeviceInfo.m
View file @
40e36226
...
@@ -15,19 +15,17 @@
...
@@ -15,19 +15,17 @@
@end
@end
@implementation
RNDeviceInfo
@implementation
RNDeviceInfo
{
}
@synthesize
isEmulator
;
@synthesize
isEmulator
;
RCT_EXPORT_MODULE
()
RCT_EXPORT_MODULE
()
-
(
dispatch_queue_t
)
methodQueue
+
(
BOOL
)
requiresMainQueueSetup
{
{
return
dispatch_get_main_queue
()
;
return
YES
;
}
}
-
(
NSString
*
)
deviceId
-
(
NSString
*
)
deviceId
{
{
struct
utsname
systemInfo
;
struct
utsname
systemInfo
;
...
...
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