Skip to content

Commit

Permalink
Change PerformanceApiExample to use ModulePathing (#36478)
Browse files Browse the repository at this point in the history
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. microsoft/react-native-windows#11373

This PR changes the example to use module pathing instead.

## Changelog

[GENERAL] [CHANGED] - Change PerformanceApiExample to use ModulePathing

Pull Request resolved: #36478

Test Plan: Tested and passed Windows tests

Reviewed By: rshest

Differential Revision: D44089501

Pulled By: javache

fbshipit-source-id: 99993a4f81556b4fef7c5d15af26b20df960ebf9
  • Loading branch information
TatianaKapos authored and facebook-github-bot committed Mar 15, 2023
1 parent 43986e8 commit 6a395cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6a395cb

Please sign in to comment.