Przeglądaj źródła

[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 lat temu
rodzic
commit
6f17988d17
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      ios/sdk/src/dropbox/Dropbox.m

+ 4
- 0
ios/sdk/src/dropbox/Dropbox.m Wyświetl plik

@@ -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
     

Ładowanie…
Anuluj
Zapisz