react-native-macos/React
Neil Sarkar 00d5674474 Remove deprecation warning for RCTExecuteOnMainThread
Summary:
As per janicduplessis recommendation, provide a new synchronous method to replace the necessary synchronous calls and use a warning in the comments (and method name).

**Motivation**

There are currently a number of XCode warnings that show up in a fresh 0.40 install of a react native project. While the project can still be run, this contributes negatively to the development experience -- valid warnings may be ignored and new ones may be added as per https://en.wikipedia.org/wiki/Broken_windows_theory

This addresses one of the warnings, by providing the functionality of a deprecated method in two specific cases where we can't avoid doing synchronous work on the main queue. See https://github.com/facebook/react-native/issues/11736 for more context.

**Test plan (required)**

I ran a project that relied on screen size and it didn't crash...happy to do more involved testing if someone can share better methodology.
Closes https://github.com/facebook/react-native/pull/11817

Differential Revision: D4402911

fbshipit-source-id: 9fd8b3f50d34984b765fe22b1f4512e103ba55a9
2017-01-10 23:13:33 -08:00
..
Base Remove deprecation warning for RCTExecuteOnMainThread 2017-01-10 23:13:33 -08:00
Executors Fix JSGlobalContext leak 2016-12-12 05:43:34 -08:00
Modules Prevent compiler inferring incorrect type 2017-01-10 22:58:33 -08:00
Profiler Replace deprecated completion block 2017-01-09 19:28:28 -08:00
React.xcodeproj Adding support in the new RN bridge on iOS 2017-01-10 11:28:44 -08:00
Views Mark params __unused or #pragma unused 2017-01-09 19:28:27 -08:00