react-native/React
Valentin Shergin b7fbeb253a RCTSurface: Support for synchronous waiting for mounting stage
Summary:
So, all initial operations can now be done synchronously (and on the main thread).
To do so, instancitate `RCTSurface` object and call `synchronouslyWaitForStage:timeout:` method like that:

RCTSurface *surface = [[RCTSurface alloc] initWithBridge:... moduleName:... initialProperties:...];
BOOL success = [surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:timeout];

or

RCTSurfaceHostingView *surfaceHostingView = [[RCTSurfaceHostingView alloc] initWithBridge:... moduleName:... initialProperties:...];
BOOL success = [surfaceHostingView.surface synchronouslyWaitForStage:RCTSurfaceStageSurfaceDidInitialMounting timeout:timeout];

Reviewed By: fkgozali

Differential Revision: D7014178

fbshipit-source-id: c3c13904a3587ff2a222fa71623c40c8f30bc8af
2018-02-20 22:19:45 -08:00
..
Base RCTSurface: Support for synchronous waiting for mounting stage 2018-02-20 22:19:45 -08:00
CxxBridge Update license headers for MIT license 2018-02-16 18:31:53 -08:00
CxxModule Update license headers for MIT license 2018-02-16 18:31:53 -08:00
CxxUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
DevSupport Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Fabric Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Inspector Forward VM version to inspector 2018-02-13 08:16:50 -08:00
Modules New UIManager API allowing intercept/delay mounting process 2018-02-20 22:19:45 -08:00
Profiler Update license headers for MIT license 2018-02-16 18:31:53 -08:00
React.xcodeproj Add constructor in YGLayout 2018-02-20 05:55:36 -08:00
UIUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Views Update license headers for MIT license 2018-02-16 18:31:53 -08:00
third-party.xcconfig More attempts to fix Travis CI runs 2017-05-10 04:32:54 -07:00