Icons not showing in nested react-navigation bar - react-native

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.

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.

React native - position a view beyond the react navigation bottom tabs it is a child of

I am trying to make the bottom sheet touch the bottom of the screen rather than the bottom of the tab bar.
screenshot
Attempts to increase the z-index and position it further down are fruitless as the View will not overlap the bottom bar, it will always go behind it.
I tried to wrap it in a Modal component, which fixes the alignment, but then you can not interact with the map.
To create a custom bottom sheet. You can use this package
react-native-actions-sheet
I have used this in many applications. This will resolve all of your issues. As this package is comfortable in iOS and android both.
You can try the bottom sheet libraries which are present in react native. Few of which I have used is:
react-native-raw-bottom-sheet //my choice
react-native-actions-sheet
You can also check this out

React navigation native collapsible header

I'm studying React Native. With react navigation, I create a navigation stack. At the top of the emulator screen, I see the title bar. Now I want to revive it. I found in the document navigation section of this page
https://github.com/benevbright/react-navigation-collapsible
But all the examples in this project are written in TypeScript files, and I use JavaScript.
Maybe I can find a JavaScript example somewhere on how to use react-navigation-collapsible.

React Native Fragment View

I am doing stack navigation in React Native. It works fine, but the problem is that I want to do the navigation like the fragment navigation in Android.
In the image from link given below, the red highlighted part only gets navigated when I click the arrow button in green highlighted part(The green highlighted part is a navigation header).
https://i.stack.imgur.com/Wa4lL.png
If i understand your question correctly... you want to make a fragment in RN. In react native, it called modal and there is many packages providing this. One of this good packages is react-native-modalbox.
I hope i understand your question correctly.

TabNavigator - React Native Android

Is there any way by which we can show the tabs to navigate screen in bottom part rather than default top part in Android. I am making an app where I need tabs to be at bottom just like in iOS.
I found out that by simply adding "tabBarPosition: 'bottom' " to TabBarConfig, I was able to get the expected output. You can refer to the docs here.