From 6a395cb2d722761825c9f24468b6d036e3e0f52c Mon Sep 17 00:00:00 2001 From: TatianaKapos Date: Wed, 15 Mar 2023 05:47:17 -0700 Subject: [PATCH] Change PerformanceApiExample to use ModulePathing (#36478) Summary: Recent integration from Windows brought in PerformanceApiExample that uses relative pathing to access react-native library. This causes us to have to override the file since our file structure is different. https://github.com/microsoft/react-native-windows/issues/11373 This PR changes the example to use module pathing instead. ## Changelog [GENERAL] [CHANGED] - Change PerformanceApiExample to use ModulePathing Pull Request resolved: https://github.com/facebook/react-native/pull/36478 Test Plan: Tested and passed Windows tests Reviewed By: rshest Differential Revision: D44089501 Pulled By: javache fbshipit-source-id: 99993a4f81556b4fef7c5d15af26b20df960ebf9 --- .../js/examples/Performance/PerformanceApiExample.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js b/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js index 288c3c2cc979fd..d41f0d93c4d450 100644 --- a/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js +++ b/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js @@ -10,13 +10,13 @@ */ 'use strict'; -import type MemoryInfo from '../../../../../Libraries/WebPerformance/MemoryInfo'; -import type ReactNativeStartupTiming from '../../../../../Libraries/WebPerformance/ReactNativeStartupTiming'; +import type MemoryInfo from 'react-native/Libraries/WebPerformance/MemoryInfo'; +import type ReactNativeStartupTiming from 'react-native/Libraries/WebPerformance/ReactNativeStartupTiming'; import * as React from 'react'; import {StyleSheet, View, Text, Button} from 'react-native'; import RNTesterPage from '../../components/RNTesterPage'; -import Performance from '../../../../../Libraries/WebPerformance/Performance'; +import Performance from 'react-native/Libraries/WebPerformance/Performance'; const {useState, useCallback} = React; const performance = new Performance();