Bottom Navigation Bar with ViewPager vs Navgraph - kotlin

I am working on Bottom Navigation bar using fragment. What is the difference if we use bottom navigation bar with View Pager or Nav Graph?

il explain in a very easy way to understand
Nav graph is way for developer to connect fragments, before this way wasnt available in android, we used to be able to do only through code, think of nav graph as a enlarged google maps preview of your city. Below screenshot
Bottom navigation (highlighted in orange)is a navigation between your fragments
View Pager(highlighted in red) is a way to have to different parts in one fragment, for example in my news fragment i have crypto news and saved news.
here googles tutorial on it if your wanna have a deeper look https://developer.android.com/guide/navigation/navigation-getting-started

Related

React native container subpages navigation

I am creating a React native application with the following scenario:
There is a navigation bar at the bottom of the screen, allowing the user to navigate between three main pages. On one of these pages, there is a backdrop with a container overlayed on it with two buttons. Each of these buttons should show open different "pages" in that container, and the navigation bar will be hidden when the user opens one of those "pages". An image is included below.
App layout example
My question is: how is this best implemented in react native?
My original idea was to implement a custom Stack Navigator with createStackNavigator. While this does work, I was wondering if this is a good way to go about it.
One result from using a custom navigator is that the navigation state in the container is also bound to the back button of the device (on Android). However, this is a welcome feature in this case as it makes sense in the navigation flow.

Icons not showing in nested react-navigation bar

Following the example of this docs page from React Navigation, I created a nested bottom navigation system for my React Native app (simplified version of my code can be seen and tested here). However, I have noticed that the icons for the pages shown in the navigation bar are the typical question mark symbols (on iOS) that show when the image is not recognized:
However, if I use a simple navigation bar, with no nesting, the icons are shown no problem. Any ideas on how to fix this?
I found out what the problem was: I was adding the icon into the deepest (second) layer of the navigation bar. When using nested navigation bars, the icons must be placed in the highest level navigation layer. Here is a working version of the previous example, with the appropriate correction.

Show Bottom Navigation outside Bottom Navigation Pages

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.

Bottom sheet over map content, similar to google maps UI, in React Native

I am trying to implement a UI layout similar to google maps "explore" on Android, (see gif) in React Native.
In my UI design I have app navigation tabs at the bottom of the screen, with a full page map background, overlaid with a "bottom sheet" coming from above the tabs, and a search box component at the top. See UI sketch below.
I have found various react-native ui components which look useful, but I can't figure out the styling to arrange them in the layout I want.
Several of the bottomsheet components I'm looking at, for example, rn-bottom-drawer show gifs similar to what I'm trying to create, e.g this animation, but I can't find an actual code example of how that UI was created. For example, the same library example just shows the bottom drawer over an empty screen.
What combination of wrapping elements and styles would allow me to create the layout described? I come from a XAML background and this kind of layout is very easy to create, but I can't get my head around how to do it in react native.
It is halfway possible with the component "react-native-swipe-up-down".
The swipe up above the App works, but it is really buggy. Had the same problem as you and couldn't find anything better than swipe-up-down til today.

implement slide from right menu like facebook app

how to open new view from navigation slider ios. example like in facebook page there is navigation slider and in navigation slider there are profile,message etc.when we click on message and profile then there is new view ,similarly please let me know how to load new view from navigation slider?
From this tutorial:
http://github.com/mikefrederick/MFSideMenu
MFSideMenu project utilizes view controller and gives you a simple API demonstration for implementing side-menu functionality like facebook app.
This is a good tutorial : http://www.appcoda.com/ios-programming-sidebar-navigation-menu/
The menu slides in from the left, however it should be relatively simple to change this so it enters from the right.