Tadeu Zagallo 9062bda79b [ReactNative] Add RCTAssertThread and restrict -[UIManager addUIBlock:] to _shadowQueue
Summary:
@public

Add `RCTAssertThread` to `RCTAssert.h` for convenience when checking the current/queue,
it accepts either a `NSString *`, `NSThread *` or `dispatch_queue_t` as the object to be checked

Also add a check to `-[RCTUIManager addUIBlock:]` - There was a discussion on github (https://github.com/facebook/react-native/issues/1365)
due to the weird behavior caused by calling it from a different thread/queue (it might be added after `batchDidComplete` has been called
and will just be dispatched on the next call from JS to objc)

Test Plan:
Change `-[RCTAnimationExperimentalManager methodQueue]` to return `dispatch_get_main_queue()` and run the 2048 example,
it should dispatch with a helpful message (screenshot on the comments)
2015-05-25 05:23:27 -08:00
..
2015-05-20 18:26:36 -08:00
2015-03-26 06:32:01 -07:00
2015-03-26 06:32:01 -07:00
2015-04-21 05:24:10 -08:00
2015-05-20 18:26:36 -08:00
2015-05-20 18:26:36 -08:00
2015-05-20 18:26:36 -08:00
2015-05-20 18:26:36 -08:00
2015-03-26 06:32:01 -07:00
2015-05-01 06:36:49 -08:00
2015-05-20 18:26:36 -08:00
2015-05-20 18:26:36 -08:00
2015-04-21 05:24:10 -08:00
2015-04-30 09:59:16 -08:00
2015-05-07 03:55:43 -08:00
2015-03-26 06:32:01 -07:00
2015-03-26 06:32:01 -07:00