[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.
This commit is contained in:
Saúl Ibarra Corretgé 2018-10-02 04:47:48 +02:00 committed by Lyubomir Marinov
parent c54db8337d
commit 6f17988d17
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ RCTPromiseRejectBlock currentReject = nil;
RCT_EXPORT_MODULE();
+ (BOOL)requiresMainQueueSetup {
return NO;
}
- (NSDictionary *)constantsToExport {
BOOL enabled = [Dropbox getAppKey] != nil;