Переглянути джерело

[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 роки тому
джерело
коміт
6f17988d17
1 змінених файлів з 4 додано та 0 видалено
  1. 4
    0
      ios/sdk/src/dropbox/Dropbox.m

+ 4
- 0
ios/sdk/src/dropbox/Dropbox.m Переглянути файл

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

Завантаження…
Відмінити
Зберегти