Sfoglia il codice sorgente

[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.
master
Saúl Ibarra Corretgé 6 anni fa
parent
commit
6f17988d17
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      ios/sdk/src/dropbox/Dropbox.m

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

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

Loading…
Annulla
Salva