[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:
parent
c54db8337d
commit
6f17988d17
|
@ -45,6 +45,10 @@ RCTPromiseRejectBlock currentReject = nil;
|
||||||
|
|
||||||
RCT_EXPORT_MODULE();
|
RCT_EXPORT_MODULE();
|
||||||
|
|
||||||
|
+ (BOOL)requiresMainQueueSetup {
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
- (NSDictionary *)constantsToExport {
|
- (NSDictionary *)constantsToExport {
|
||||||
BOOL enabled = [Dropbox getAppKey] != nil;
|
BOOL enabled = [Dropbox getAppKey] != nil;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue