ReactJS – React Native Navigator – Convert and uninstall the previous scene

I am using React Native app and implemented with cross-platform Navigator. In one instance, I have a scenario, “login” route, when the user successfully logs in, I want to push to Another scenario, the “home” route.

I can do this in two ways: navigator.immediatelyResetRouteStack([routes.home]) and navigator.push(routes.home). In the first implementation, the login scene will be uninstalled, but I did not get the benefits of the scene transition. In the second implementation, I get a scene transition, but the login route will not be uninstalled, even if I don’t need to transition back to it.

Is there a way to achieve the “push and uninstall last time” conversion?

routeStack is an array of all scenes. How to delete it from the array after conversion?

I am using React Native app and implemented with cross-platform Navigator. In an instance, I have a scenario, “login” route, when the user successfully logs in, I want to push to Another scenario, the “home” route.

I can do this in two ways: navigator.immediatelyResetRouteStack([routes.home]) and navigator.push(routes.home). In the first implementation, the login scene will be uninstalled, but I did not get the benefits of the scene transition. In the second implementation, I get a scene transition, but the login route will not be uninstalled, even if I don’t need to transition back to it.

Is there a way to achieve the “push and uninstall last time” conversion?

RouteStack is an array of all scenes. How to delete it from the array after conversion?

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5932 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.