-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Navigations between Scene very very slow #2885
Comments
Do you have any network requests executed at any scenes? . |
Thank you for your replies, I have just static data in my code, no API callings, no console log. I have run the below command:
Due to this, performance is better than earlier but still the navigation took around 2 seconds to move to another scene. I am checking in Android right now (release build) |
Below is my Code: package.json
Router.js
SideMenu.js:
Menu.js
Home.js (The page in which I am adding the side menu. I could add the whole code of this file as it is too large)
Also Please let me know what should I use router-flux or react-navigation? Which one is better? |
I have observed in my app, when data is more on the page, navigation takes time in router flux. |
Could the use of |
@AgNm did you try to make a prod build and to test it on real devices (both iOS and Android?) |
@MaxInMoon yes I tried on both Android & iOS , I am amazed to see that app is working really well on Simulators but very slow on real devices in both platforms. I am fade up of it now. |
@AgNm indeed it's weird 😩 just two questions 1- why: 2 - when building on iOS from xCode, did you triple checked that you selected |
@MaxInMoon 1. Actually I am creating views right now, no redux. That why I have set it to null. I have used native-base throughout my app. The issue is I have created Cards, Grid, ListView, Items hardcoded on my page, The page which contains large data is taking around 2 3 seconds to load. A weird pause is there before every page load. |
you can place duration in |
Be careful if you are not in a release mode because the app could respond very slowly when navigating. On my end, my app has no worries with the navigation part. It may be slow but only in debug mode, and even more with the remote debugger active but otherwise it's fine. And I'm working on an Android device. |
@AgNm Have you tried using |
I noticed that depending on what modules you are using - they might have enabled some kind of debugging during dev mode - that if you are not with the chrome inspector opened will for sure cause your app to be laggy - my experience on osx and xcode. Fixed getting rid of console (using a babel transform plugin), opening xcode or keeping the chrome opened all the time. Could you push a sample app or make the Example app to behave like yours? Also, could you show which other packages are you using? |
@AgNm what's the status there? |
I have added
|
Even in a release mode? |
yes |
Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists |
still present |
it is really slower than standard TabNavigator of react-native. why did you close the issue? :) you don't want people to use this lib? |
I used the example project and when I open the error modal from a tab view, it takes a lot of time to open it. Rendering is very slow in general when using react-native-router-flux. I am using version 4.2.0 |
continues, lag of react native router flux is something important to consider avoiding use this tool. |
The same issue still in 2022 |
Version
Tell us which versions you are using:
"react": "16.2.0",
"react-native": "0.52.2",
"react-native-router-flux": "^4.0.0-beta.28",
Expected behaviour
Navigations should be fast.
Actual behaviour
I am doing navigation throughout my app using
Actions.pageName();
& it is working very slowly.I checked other links with same issue but I did not find any solution.
The text was updated successfully, but these errors were encountered: