diff --git a/packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.js b/packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.js index 4ab3acd54ef4b6..ace5eb38e605cd 100644 --- a/packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.js +++ b/packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.js @@ -38,11 +38,9 @@ export function setRuntimeConfigProvider( verify: boolean, }, ): void { - invariant( - getRuntimeConfig == null, - 'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.', - ); - getRuntimeConfig = runtimeConfigProvider; + if (getRuntimeConfig === undefined) { + getRuntimeConfig = runtimeConfigProvider; + } } /**