Please tell me how to dynamically control initialRouteName in react-navigation components.

use the react-navigation component, how to dynamically set the default page initialRouteName for routing,

clipboard.png

is that after opening app, the user does not log in and the login page is displayed by default. If the user is logged in, open app to display the applicable main page by default


https://reactnavigation.org/d...

keyword: createSwitchNavigator

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beaba3-31265.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beaba3-31265.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?