Changed default method queue to a background queue.

This commit is contained in:
Nick Lockwood
2015-04-20 12:06:02 -07:00
parent 5e2f90a73e
commit 5ce9fa4dda
9 changed files with 78 additions and 32 deletions

View File

@@ -35,6 +35,11 @@ RCT_EXPORT_MODULE()
return self;
}
- (dispatch_queue_t)methodQueue
{
return dispatch_get_main_queue();
}
/**
* @param {NSDictionary} args Dictionary of the form
*

View File

@@ -26,6 +26,11 @@ static BOOL RCTViewControllerBasedStatusBarAppearance()
RCT_EXPORT_MODULE()
- (dispatch_queue_t)methodQueue
{
return dispatch_get_main_queue();
}
RCT_EXPORT_METHOD(setStyle:(UIStatusBarStyle)statusBarStyle
animated:(BOOL)animated)
{

View File

@@ -108,6 +108,11 @@ RCT_IMPORT_METHOD(RCTJSTimers, callTimers)
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (dispatch_queue_t)methodQueue
{
return dispatch_get_main_queue();
}
- (BOOL)isValid
{
return _bridge != nil;