Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Cannot read property 'start' of undefined #2

Open
VacuumDecay opened this issue Nov 24, 2022 · 3 comments
Open

Android: Cannot read property 'start' of undefined #2

VacuumDecay opened this issue Nov 24, 2022 · 3 comments

Comments

@VacuumDecay
Copy link

Hi, thanks for this repo.

I am unable to run this on Android as I get the error "Cannot read property 'start' of undefined" when attempting to invoke PerformanceStats.start(true);.

After some testing it seems that PerformanceStatsNativeModule is always undefined in /src/index.js and it appears this library is not built when I compile my app.

I'm on React Native version 0.64 and have am not yet using the new architecture. Seems like the autolinking hasn't worked unless I am missing something.

@eyupsincar
Copy link

I'm getting the same error, I guess it's not solved yet.

@mytabworks
Copy link

not working on android

@ccoltos
Copy link

ccoltos commented Oct 23, 2024

Your latest version is calling wrong functions in Android PerformanceStatsImpl.java
You use:

double fps = mFrameCallback.getFPS();
double jsFps = mFrameCallback.getJSFPS();

and correct is:

double fps = mFrameCallback.getFps();
double jsFps = mFrameCallback.getJsFPS();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants