After migration to RN73,RNNReactView now extends from RCTSurfaceHostingProxyRootView and uses new initWithBridge: implementation (with Fabric) with RCTFabricSurface instance. In initWithBridge: method, we call [super initWithSurface:surface sizeMeasureMode:sizeMeasureMode], but this method located in RCTSurfaceHostingView (parent for RCTSurfaceHostingProxyRootView) and does not call [surface start] (unlike RCTSurfaceHostingProxyRootView[super initWithSurface:surface] that calls it, but it does not allow us to specify RCTSurfaceSizeMeasureMode), so all we need to do is to call [surface start] after RNNReactView init.
Also I created Expo plugin for this wonderful library, it supports SDK 49 and SDK 50 (RN 72 & 73): RNN Expo Plugin
After migration to RN73,
RNNReactView
now extends fromRCTSurfaceHostingProxyRootView
and uses newinitWithBridge:
implementation (with Fabric) withRCTFabricSurface
instance. IninitWithBridge:
method, we call[super initWithSurface:surface sizeMeasureMode:sizeMeasureMode]
, but this method located inRCTSurfaceHostingView
(parent forRCTSurfaceHostingProxyRootView
) and does not call[surface start]
(unlikeRCTSurfaceHostingProxyRootView
[super initWithSurface:surface]
that calls it, but it does not allow us to specifyRCTSurfaceSizeMeasureMode
), so all we need to do is to call[surface start]
afterRNNReactView
init.Also I created Expo plugin for this wonderful library, it supports SDK 49 and SDK 50 (RN 72 & 73): RNN Expo Plugin