Browse Source

[iOS] Fix warning (#3491)

When a native iOS module implements `constantsToExport` it must define
`requiresMainQueueSetup`. In this case we don't do any UI stuff so it doesn't
need to be initialized in the main thread.
j8
Saúl Ibarra Corretgé 7 years ago
parent
commit
6f17988d17
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      ios/sdk/src/dropbox/Dropbox.m

+ 4
- 0
ios/sdk/src/dropbox/Dropbox.m View File

45
 
45
 
46
 RCT_EXPORT_MODULE();
46
 RCT_EXPORT_MODULE();
47
 
47
 
48
++ (BOOL)requiresMainQueueSetup {
49
+    return NO;
50
+}
51
+
48
 - (NSDictionary *)constantsToExport {
52
 - (NSDictionary *)constantsToExport {
49
     BOOL enabled = [Dropbox getAppKey] != nil;
53
     BOOL enabled = [Dropbox getAppKey] != nil;
50
     
54
     

Loading…
Cancel
Save