react-native/React/Base/Surface
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
..
SurfaceHostingView Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurface.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurface.mm RCTSurface: Support for synchronous waiting for mounting stage 2018-02-20 22:19:45 -08:00
RCTSurfaceDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceRootShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceRootShadowView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceRootShadowViewDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceRootView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceRootView.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceStage.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceStage.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceView+Internal.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTSurfaceView.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00