react-native-tabnavigator

React native BottomTabNavigator with DrawerNavigator, how to keep bottom navigator visible all the time

你说的曾经没有我的故事 提交于 2020-07-05 12:28:13
问题 I have gone through various posts on SO and github about react navigation, but most of them are a combination of react native stack navigator with drawer navigator. I couldn't find anything that could help fix my problem. What i am trying to do is i have a bottom tab bar with five screens which load nicely with correct data, i want to add a drawer navigator to provide more screens and have different data. I have managed to build the drawer navigator on top of the tab navigator but when the

React Native - Android - keyboardavoidingView in stackNavigator within a tabNavigator pushes bottomTabBar (clunky behaviour)

≡放荡痞女 提交于 2020-06-17 09:37:08
问题 I am trying to build an auth flow that has a welcome page and then login or signup depending on the user's case. It is built inside a stack navigator. The first screen has no header but then login and signup do via their screen options. // AuthNavigator const AuthStackNavigator = createStackNavigator(); export const AuthNavigator = () => { return ( <AuthStackNavigator.Navigator initialRouteName={WELCOME_PAGE.id} screenOptions={{ headerShown: false, headerTintColor: colors.primary, }} lazy>

React Native - pass props from One screen to another screen (using tab navigator to navigate)

时光总嘲笑我的痴心妄想 提交于 2020-05-15 08:37:07
问题 I need to pass data from my HomeScreen to my SecondScreen. There are a ton of examples of how to do this if i'm clicking a button on the HomeScreen to navigate to SecondScreen, but can't find anything showing how to pass to SecondScreen if I'm using a v2 bottom tab navigator to go from HomeScreen to SecondScreen. I've tried screenprops and a couple other methods and spent about 8 hours trying to figure it out but could not get it to work. Any idea how to do this? Please, any hint would be

React Native - How to set the drawer navigation content on the particular tab based on drawer item selection?

半世苍凉 提交于 2020-04-18 05:42:18
问题 What i want to achieve is there are 2 tabs in my app 1) Home => On press it shows a simple screen 2) Menu => On press it opens and close drawer based on whether drawer is opened or not. Drawer has custom content. It has 4 buttons 1) Accounts 2) Reports 3) Graph 4) List Selecting on any of the drawer item it should open a respective page in the "Menu" tab navigator space. So how to manage this kind of navigation? import React from 'react'; import { View, Text } from 'react-native' import {

how to navigate to a particular tab from a drawer navigator menu react native

不羁岁月 提交于 2020-04-11 17:05:12
问题 I have to navigate to a particular tab when pressed from drawer items. I searched around a lot but couldnt find anything relating to my problem i tried to follow this link of navigation actions but couldnt find out how to implement it Navigate to specific tab from Drawer Navigator. const TabNavigator = createMaterialTopTabNavigator( { Upcoming: { screen: UpcomingScreen }, Accepted: { screen: AcceptedScreen }, Ongoing: { screen: OngoingScreen }, Completed: { screen: CompletedScreen }, }, );

how to navigate to a particular tab from a drawer navigator menu react native

醉酒当歌 提交于 2020-04-11 17:05:08
问题 I have to navigate to a particular tab when pressed from drawer items. I searched around a lot but couldnt find anything relating to my problem i tried to follow this link of navigation actions but couldnt find out how to implement it Navigate to specific tab from Drawer Navigator. const TabNavigator = createMaterialTopTabNavigator( { Upcoming: { screen: UpcomingScreen }, Accepted: { screen: AcceptedScreen }, Ongoing: { screen: OngoingScreen }, Completed: { screen: CompletedScreen }, }, );

Custom navigation operation on specific tab button of react-navigation's tab navigator

限于喜欢 提交于 2020-01-16 08:29:13
问题 I wanna open drawer (for example, options menu) from specific button on tab instead of navigating to screen. My current solution was working on react-navigation v2 but as we upgraded from v2 to v3 of react-navigation and v60 of react-native from v57, the solution has stopped working. There is a dummy screen assigned to the menu tab button in tab bar and I am intercepting the navigation operation using tabBarOnPress() . The method opens drawer and returns if it matches the menu button's route

Is TabNavigator deprecated?

烂漫一生 提交于 2019-12-06 05:36:46
问题 When I run the simulator with... react-native run-ios ...I am seeing a message in the terminal that "TabNavigator is deprecated. Please use the createBottomTabNavigator..." However, I don't think TabNavigator is deprecated, and I don't think createBottomTabNavigator exists on the web or in reality generally. Other than that, all's well! Except I can't run my app. Because I get this red-screen error suggesting something is amiss with React Navigation: undefined is not a function (near '...(0 ,