react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Can't use the new performance.reactNativeStartupTiming

Open saif-o99 opened this issue 2 years ago • 4 comments

Description

Thank you for keep improving RN.

im trying to use the new performance.reactNativeStartupTiming which in https://github.com/facebook/react-native/commit/c1023c73b010245f2e8182b75cc3bccd112d5e2e it says 'This diff adds the performance.reactNativeStartupTiming API to the performance global object for RN.' so when i try to log the global.performance object it just gives me one function {"now": [Function anonymous]}.

there something wrong or the feature is not completed yet?

React Native Version

0.72.3

Output of npx react-native info

System: OS: Windows 10 10.0.22621 CPU: "(12) x64 AMD Ryzen 5 5600X 6-Core Processor " Memory: 2.41 GB / 15.94 GB Binaries: Node: version: 18.12.1 path: C:\Program Files\nodejs\node.EXE Yarn: version: 1.22.19 path: ~\AppData\Roaming\npm\yarn.CMD npm: version: 8.19.2 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-212.5712.43.2112.8609683 Visual Studio: - 16.11.32510.428 (Visual Studio Community 2019) wanted: 0.72.2 react-native-windows: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: Not found

Steps to reproduce

write console.log(global.performance); in App.tsx

Snack, code example, screenshot, or link to a repository

https://github.com/saif-o99/Awesome-project

saif-o99 avatar Jul 12 '23 15:07 saif-o99

Same, would be nice if this API is a bit more documented.

robrechtme avatar Aug 17 '23 07:08 robrechtme

Not working indeed... it is like it is not loading...

sidferreira avatar Sep 06 '23 23:09 sidferreira

No news here?

sidferreira avatar Feb 06 '24 18:02 sidferreira

No news here?

Not for me. I just gave up on it

saif-o99 avatar Feb 06 '24 20:02 saif-o99

It got renamed from performance.reactNativeStartupTiming to performance.rnStartupTiming and it is still private as mentioned here.

abdelhamid-f-nasser avatar Mar 18 '24 11:03 abdelhamid-f-nasser