Comments only. Clarify a few Venice and SVC methods

Summary: Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D33468276

fbshipit-source-id: bcc62ba1e728bba2492dbbbb0e4569285effeca7
This commit is contained in:
Paige Sun
2022-01-07 17:41:55 -08:00
committed by Facebook GitHub Bot
parent 9daae5a5f2
commit 6be46b0bb5
2 changed files with 2 additions and 0 deletions
@@ -116,6 +116,7 @@ export function getWithFallback_DEPRECATED<Config>(
viewConfigProvider: () => PartialViewConfig,
): React.AbstractComponent<Config> {
if (getRuntimeConfig == null) {
// `getRuntimeConfig == null` when static view configs are disabled
// If `setRuntimeConfigProvider` is not configured, use native reflection.
if (hasNativeViewConfig(name)) {
return get<Config>(name, viewConfigProvider);
@@ -41,6 +41,7 @@
using namespace facebook::react;
// Allow JS runtime to register native components as needed. For static view configs.
void RCTInstallNativeComponentRegistryBinding(facebook::jsi::Runtime &runtime)
{
auto hasComponentProvider = [](std::string const &name) -> bool {