diff --git a/React/Inspector/RCTInspector.mm b/React/Inspector/RCTInspector.mm index 32201f760..a87a6427e 100644 --- a/React/Inspector/RCTInspector.mm +++ b/React/Inspector/RCTInspector.mm @@ -80,7 +80,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init) + (RCTInspectorLocalConnection *)connectPage:(NSInteger)pageId forRemoteConnection:(RCTInspectorRemoteConnection *)remote { - auto localConnection = getInstance()->connect(pageId, std::make_unique(remote)); + auto localConnection = getInstance()->connect((int)pageId, std::make_unique(remote)); return [[RCTInspectorLocalConnection alloc] initWithConnection:std::move(localConnection)]; }