[ReactNative] Fix bridge event dedupe

This commit is contained in:
Tadeu Zagallo
2015-04-28 08:02:56 -07:00
parent f7276b0ae4
commit 2f4430cf51
3 changed files with 113 additions and 35 deletions

View File

@@ -49,6 +49,15 @@ typedef void (^RCTJavaScriptCallback)(id json, NSError *error);
*/
- (void)executeBlockOnJavaScriptQueue:(dispatch_block_t)block;
@optional
/**
* Special case for Timers + ContextExecutor - instead of the default
* if jsthread then call else dispatch call on jsthread
* ensure the call is made async on the jsthread
*/
- (void)executeAsyncBlockOnJavaScriptQueue:(dispatch_block_t)block;
@end
static const char *RCTJavaScriptExecutorID = "RCTJavaScriptExecutorID";