I have five screens in a material bottom tab navigator. On one of the screens, I want to use a drawer for some settings. In the other screens there are currently no drawers planned, however if they come, they will have different content from this current one.
I want the drawer to be displayed above the bottom navigation bar. However I don't want to solve it by wrapping the whole material bottom tab navigator in a drawer navigator, as this would not make much sense and also provide the same drawer in all of the screens.
Is there another way of making the drawer appear on top of the bottom navigation bar? Ideally, the solution would not include react-navigation for the drawer at all, as I don't use it for navigation.
The answer appears to be to use a Modal, which can server as a popup. https://reactnative.dev/docs/modal for the documentation.
Related
I have in design a Bottom Tab Navigation in a page that isn't in the Bottom Tab group of pages... Is it possible to do?
My Bottom Tab Pages are "Station", "Home" and "Menu". I have a "Form" screen, and in the UI this Form has the Bottom Tab... Is it possible in React Native?
It seems like impossible and I didn't find nothing in docs (React Navigation / React Native)
Edit: Putting a design example.
Pay attention, in the image above, the "Workers Form" isn't in the bottom menu group of pages, but I need to show the bottom menu in this page too (Workers Form)...
I didn't find any information about it in React Navigation docs, so I don't know if it's possible.
You need to embed a Stack.Navigator inside your Tab.Navigator.Please refer to my answer here for a code example.
I'm making an app, and in the app there is a home screen. On the home screen, I want to add a bottom navigator with various logos, which when clicked on, navigate the user to a different screen. I only want the bottom navigator to be on the screens that can be accessed from the bottom navigator in home. How would I do this? Would I need different types of navigators in my app.js since I'm using a stack navigator as well? Thanks for any help, I sincerely appreciate it.
Use tab-based-navigation provided by react-navigation. Make tab navigator with the screens that you want to be displayed with tab and wrap that in Stack. Any other screen that you want to display without tab navigation, just add as another stack and wrap all the stacks in Stack.Navigator. Here's the docs they are pretty well explained
https://reactnavigation.org/docs/tab-based-navigation
I am using react navigation and would like to show the modal that will be visible above the screen and be able to navigate to the next screens in StackNavigator. The illustration below shows what I want to achieve
The solution that is in the documentation (https://reactnavigation.org/docs/modal/) solves only part of the problem, because I can't open a modal and navigate another part of the stack while keeping the modal on top
you can use react native modal . it is not part of react navigation and it will show above all screens
I'm new in react native and I'm looking for an example of react navigation. I'm looking to create a home page similar to the picture below.
Use React Navigation
Stack Navigator - It let's you switch between screens. It creates a stack. It let's to navigate from one screen to another. When you press back button it navigates you back to the first screen. It
Tab navigator- It will create tabs as your picture.
In your case I think you will need a tab navigator which will be inside stack navigator.
I'm using the StackNavigator from react-navigation and I'm trying to customize the navigation process.
On one screen, I have two buttons that both use the "navigate" function to redirect the user to the same screen (which is a scrollview). Is there any way to have one of the buttons scroll down to a different part of the screen after navigating?