I am new to both Recact Native and React-Navigation. The app I am planning is super content heavy. It will have several hundred unqique screens. I want to connect them via React-Navigation so my stack is going to be quiet large. Is there an issue with that performance wise or anything I should keep in mind? My guess is that a screen is only loaded when the user is accessing it for the first time, so the initial loading time of the app should not be affected?
Thanks!
Actually it doesn't matter how may js files are you creating but it matters when you are:
3)Try to use FastImage instead of image when you want to show images using FlatList, Map etc. In short if images in a single screen is render more than twice.
Note: At Last i want to say that you can create as much as JS files but it must be reusable, not unnecessary and no repeated code there.
You can also consider this as a performance improvement.
You have a screen. When you push or navigate a new screen on it. You can stop the animations in the background screen. Because the screen in the back continues to work. So you can stop animating the background screen.
For example, you have a slider component in the home screen and. This slider autoplay feature is active. When you change the home screen you can stop the autoplay feature.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.