[ReactNative] Move VSync bound events to JS thread

This commit is contained in:
Tadeu Zagallo
2015-04-22 07:03:55 -07:00
parent 462224727a
commit 3595b79ec3
5 changed files with 91 additions and 50 deletions

View File

@@ -175,6 +175,11 @@ typedef void (^WSMessageCallback)(NSError *error, NSDictionary *reply);
});
}
- (void)executeBlockOnJavaScriptQueue:(dispatch_block_t)block
{
dispatch_async(dispatch_get_main_queue(), block);
}
- (void)invalidate
{
_socket.delegate = nil;