To keep the React Navigation Drawer open at all times, you can set the drawerLockMode
prop to 'locked-open'
in the DrawerNavigatorConfig
object. This will disable the ability to close the drawer and keep it open permanently.
Here is an example code snippet:
import { createDrawerNavigator } from '@react-navigation/drawer';
const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
drawerLockMode={'locked-open'}
>
{/* your screens here */}
</Drawer.Navigator>
);
}
Note: It's usually not recommended to keep the drawer permanently open as it takes up valuable screen space for the main content.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-07-15 08:18:15 +0000
Seen: 13 times
Last updated: Jul 15 '23
What is the process for initializing Java UDFs in Spark?
What does the error message "Error detected while processing $/.config/nvim/init.lua" mean?
What are the components that explain the state of ECMAScript execution context specification?
Does GraphDB automatically eliminate duplicate triples?
It appears that Vitest is not effectively mimicking or simulating behavior.
How can OMNET++ be used to simulate M/M/c/c?
How can I use oversampling to address a problem?
What is the method to determine the most precise categorization of data using Self Organizing Map?