-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
Hi,
So, my react-native app's performance is good in production mode in iOS -- native-feeling transitions, smooth animations, etc. However, on Android, we have serious performance issues -- multi-second delays for simple transitions, choppy animations, etc. The app is basically great in iOS and not usable in Android.
We have tried to follow the react native performance docs. We have taken out all the console logs, swapped ListViews with FlatViews and SectionViews, made animations useNativeDriver, etc.
We have also followed the guides for building in production mode -- turn debuggable to false in the app's build.gradle, set the build-variant to release, generate a signed APK with a keystore .jks file, etc. etc.
We have tested Android performance on the emulator and on two devices -- on a new Galaxy S8 and a 2013 Nexus 7 tablet. The performance is poor on both devices. We have deleted the cache, uninstalled the app, cleaned the build folder, and rebuilt many times.
Any ideas on how to fix this? It is odd that there is such a big performance hit in Android, and we are thinking there could be something easily remedied that we are missing.
Environment:
"react": "^15.6.1",
"react-native": "^0.50.3",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
Android Studio:
compileSdkVersion 23
buildToolsVersion '25.0.0'
build:gradle:2.3.3
Any help is greatly appreciated, thanks.