Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Unhandled JS Exception: undefined is not an object(evaluating 'global.performance.now') is in react-native-tvOS

I'm creating a React-Native-tvOs app and while running that default template app it shows this error. I followed all the script from react-native-tvOs GitHub page but still, when I tried running it on the Xcode Apple TV simulator, it always throws this error.
This is the script I'm running is from GitHub react-native-tvOS page:-

npm install -g @react-native-community/cli
react-native init FinalPOC --template=react-native-tvos@latest
cd FinalPOC && react-native run-ios  --simulator "Apple TV" --scheme "FinalPOC-tvOS"

Screeshot of the Error:
enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

I got the same error,

  1. Remove node_modules with rm -rf rm -rf node_modules

  2. Then do npm install

    It works for me

about 4 years ago · Juan Pablo Isaza Report

0

same error,

Modify this file react-native/Libraries/Utilities/createPerformanceLogger.js maybe work.

modify

export const getCurrentTimestamp: () => number =
 global.nativeQPLTimestamp ?? global.performance.now.bind(global.performance);

to

export const getCurrentTimestamp: () => number = Date.now

New Version React Native has not set nativeQPLTimestamp to variable nativeQPLTimestamp in global.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!