How do you set up a login component that is not in the TabBarIOS? - react-native

I want all my views to be in a TabBarIOS except one - the login view. Currently in my app.js I render the TabBarIOS with items each containing a NavigatorIOS that loads my different components. But how do I organize my project to have a separate component that doesn't show the tab bar at all?

Can't you use a modal instead?
https://github.com/brentvatne/react-native-modal

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.

how to show a modal and be able to navigate between screens

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

React-native custom component renders list items under views of other components

I have created an autocomplete textbox component which basically renders a list of suggestions as the user types. When it is the only component on the screen it works fine but when I try putting it inside a view with another component its view seems to render over the component it is placed alongside. When I put them in separate views the list seems to render under the view below it. I was just wondering if there was a way to render the list above the other views on the screen? Thanks for your help
I suggest you to render a modal on pressing the search view and the modal should contain your textbox for typing and the flatlist below it. The modal will render above all views on your screen. for more help read the documentation.
https://facebook.github.io/react-native/docs/modal

Is there a way to hide a single tab bar item using React Native Router Flux?

I'm using React Native Router Flux and have a bottom tab bar. I have a screen set up with a lot of links to other screens on it. If the parent scene isn't added to the tabs, I'm unable to route to it.
I've looked through the documentation and tried various options and styling. I think the easiest option would be to apply a width of 0 to that particular scene group, but it isn't available with View styles.
I want to be able to hide the parent scene so it isn't showing in the tab bar. At the moment, nothing is changing and the item is showing in the tab bar.
Figured it out. The problem was that I had the child scenes nested within a parent scene. When I removed them from the parent and outside of the tabs, it worked perfectly.

Sticky Views while react-navigation

Im trying to build a mobile app where we have a constant header bar throughout the app. I have the body where I have buttons.. Each button navigates to a screen. I need the header bar in every screen but I dont wish to repeat the code in all screens. I dont intend to use TabNavigator either. Is there any alternative??
in image1 and image 2 the bar with the search,cart and offerzone tag remains same. The rest changes..I need this behaviour without repeating the header code in both screens.
You can separate the code of headerBar into a independent component, and use redux store to manage this component's props.
After you do this, you just need to import the component in each screen, the component will get its props from redux store automatically. Each screen can contact headerBar with redux actions