diff --git a/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js b/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js index 08a1629fe19..60b27444e79 100644 --- a/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js +++ b/packages/rn-tester/js/examples/Performance/PerformanceApiExample.js @@ -14,7 +14,9 @@ import type MemoryInfo from 'react-native/src/private/webapis/performance/Memory import type ReactNativeStartupTiming from 'react-native/src/private/webapis/performance/ReactNativeStartupTiming'; import RNTesterPage from '../../components/RNTesterPage'; +import {RNTesterThemeContext} from '../../components/RNTesterTheme'; import * as React from 'react'; +import {useContext} from 'react'; import {Button, StyleSheet, Text, View} from 'react-native'; import Performance from 'react-native/src/private/webapis/performance/Performance'; @@ -22,6 +24,8 @@ const {useState, useCallback} = React; const performance = new Performance(); function MemoryExample(): React.Node { + const theme = useContext(RNTesterThemeContext); + // Memory API testing const [memoryInfo, setMemoryInfo] = useState(null); const onGetMemoryInfo = useCallback(() => { @@ -34,13 +38,13 @@ function MemoryExample(): React.Node {