Fabric: Proper way to stop Fabric Surfaces
Summary: @public Apparently, we have to call `ReactFabric.unmountComponentAtNode(tag)` instead of `AppRegistry.unmountApplicationComponentAtRootTag(tag)`. Reviewed By: sahrens Differential Revision: D9652730 fbshipit-source-id: f56dba7dbe5421a7d939b91178db5104476fe550
This commit is contained in:
parent
d2186081b3
commit
ff1b950e29
|
@ -147,7 +147,7 @@ using namespace facebook::react;
|
|||
|
||||
- (void)stopSurface:(RCTFabricSurface *)surface
|
||||
{
|
||||
[_batchedBridge enqueueJSCall:@"AppRegistry" method:@"unmountApplicationComponentAtRootTag" args:@[@(surface.rootTag)] completion:NULL];
|
||||
[_batchedBridge enqueueJSCall:@"ReactFabric" method:@"unmountComponentAtNode" args:@[@(surface.rootTag)] completion:NULL];
|
||||
}
|
||||
|
||||
#pragma mark - RCTMountingManagerDelegate
|
||||
|
|
Loading…
Reference in New Issue