react-native/Examples/UIExplorer/UIExplorerUnitTests
Nick Lockwood 34ec6a91a9 Move setBridge: off main thread
Summary:
Previously, if a module implemented `setBridge:` we assumed that it needs to be initialised on the main thread. This assumption was not really warranted however, and it was a barrier to deferring module initialization.

This diff tweaks the rules so that only modules that override `init` or `constantsToExport**` are assumed to require main thread initialization, and others can be created lazily when they are first used.

WARNING: this will be a breaking change to any 3rd party modules that are assuming `setBridge:` is called on the main thread. Those modules should be rewritten to move any code that requires the main thread into `init` or `constantsToExport` instead.

`**` We will also be examining whether `constantsToExport` can be done lazily, but for now any module that uses it will still be created eagerly when the bridge starts up.

Reviewed By: javache

Differential Revision: D3240682

fb-gh-sync-id: 48f309e3158bbccb52141032baf70def3e609371
fbshipit-source-id: 48f309e3158bbccb52141032baf70def3e609371
2016-05-03 09:09:21 -07:00
..
OCMock CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
Info.plist Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
LayoutSubviewsOrderingTest.m Bugfix - Typos 2015-12-15 09:09:32 -08:00
RCTAllocationTests.m Re-enable testUnderlyingBridgeIsDeallocated 2016-01-06 09:03:33 -08:00
RCTBridgeTests.m CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
RCTComponentPropsTests.m Added unit tests for component prop setting and resetting 2016-03-18 08:17:20 -07:00
RCTConvert_NSURLTests.m Use mainBundle in RCTConvert to resolve asset paths 2015-11-05 09:30:36 -08:00
RCTConvert_UIFontTests.m Implemented lazy parsing of method signatures to improve TTI 2015-08-11 08:49:13 -08:00
RCTEventDispatcherTests.m better event emitting II: no deadlocks 2016-04-02 23:31:25 -07:00
RCTGzipTests.m Re-enable testUnderlyingBridgeIsDeallocated 2016-01-06 09:03:33 -08:00
RCTImageLoaderHelpers.h Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTImageLoaderHelpers.m Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTImageLoaderTests.m Dispatch module setup asynchronously to avoid blocking main thread when bridge starts 2016-03-03 02:21:36 -08:00
RCTImageUtilTests.m Removed placeholder image logic 2016-04-25 03:31:19 -07:00
RCTJSCExecutorTests.m Move RCTJSCExecutorTests to ReactKitBenchmarks 2016-04-19 11:37:28 -07:00
RCTJSONTests.m Handle bad JSON data without crashing 2016-01-26 06:13:29 -08:00
RCTMethodArgumentTests.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTModuleInitNotificationRaceTests.m Dispatch module setup asynchronously to avoid blocking main thread when bridge starts 2016-03-03 02:21:36 -08:00
RCTModuleInitTests.m Move setBridge: off main thread 2016-05-03 09:09:21 -07:00
RCTModuleMethodTests.m Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
RCTShadowViewTests.m Extracted rootview-specific shadowview logic into new class 2016-03-21 03:21:27 -07:00
RCTUIManagerTests.m Replaced RCTSparseArray with NSDictionary 2015-11-14 10:28:28 -08:00
RCTURLUtilsTests.m Remove `hot` query string attribut when HL is disabled 2016-01-06 11:55:33 -08:00
libOCMock.a [ReactNative] Move unit tests to UIExplorer 2015-06-06 13:38:34 -08:00