diff --git a/packages/react-native/Libraries/Core/setUpPerformanceObserver.js b/packages/react-native/Libraries/Core/setUpPerformanceObserver.js new file mode 100644 index 00000000000..20e0f32f5c9 --- /dev/null +++ b/packages/react-native/Libraries/Core/setUpPerformanceObserver.js @@ -0,0 +1,16 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow strict-local + * @format + */ + +import {polyfillGlobal} from '../Utilities/PolyfillFunctions'; + +polyfillGlobal( + 'PerformanceObserver', + () => require('../WebPerformance/PerformanceObserver').default, +);