react-native-macos/React/Modules
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
..
RCTAlertManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTAlertManager.m [ReactNative] Add prompt to AlertIOS 2015-05-13 13:24:36 -07:00
RCTAppState.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTAppState.m Observing "MemoryWarningNotification" and proxying it up to the DeviceEventEmitter 2015-05-22 13:09:56 -08:00
RCTAsyncLocalStorage.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTAsyncLocalStorage.m Implemented thread control for exported methods 2015-04-18 11:13:39 -08:00
RCTExceptionsManager.h [ReactNative] differentiate fatal and soft exceptions 2015-05-13 13:24:37 -07:00
RCTExceptionsManager.m [ReactNative] differentiate fatal and soft exceptions 2015-05-13 13:24:37 -07:00
RCTSourceCode.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTSourceCode.m [ReactNative] Allow JS know its URL 2015-04-20 14:20:36 -08:00
RCTStatusBarManager.h [ReactNative] s/ReactKit/React/g 2015-03-26 02:42:24 -08:00
RCTStatusBarManager.m Changed default method queue to a background queue. 2015-04-20 12:02:04 -08:00
RCTTiming.h [ReactNative] Use a single DisplayLink held by the bridge 2015-04-15 07:07:48 -08:00
RCTTiming.m [ReactNative] Create private underlying bridge to prevent retain cycles 2015-05-04 10:36:20 -08:00
RCTUIManager.h Bump .buckversion to 6cdb82cb7493a86c39d0f0dc3c102d0f470f55de. 2015-04-23 08:24:08 -08:00
RCTUIManager.m [ReactNative] Add RCTAssertThread and restrict -[UIManager addUIBlock:] to _shadowQueue 2015-05-25 05:23:27 -08:00