Skip to content

Instantly share code, notes, and snippets.

@artyorsh
Created October 23, 2019 12:26
Show Gist options
  • Save artyorsh/51514e28501672e36287d91b36872721 to your computer and use it in GitHub Desktop.
Save artyorsh/51514e28501672e36287d91b36872721 to your computer and use it in GitHub Desktop.
Home Navigator with Tabs at the bottom (Binding React Navigation 5 to Eva Design System)
import React from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { BottomHomeScreen } from '@app-scenes/home';
import { TodoNavigator } from './todo.navigator';
import { ProfileNavigator } from './profile.navigator';
import { AppRoute } from './app-routes';
const BottomTab = createBottomTabNavigator();
export const HomeNavigator = (): React.ReactElement => (
<BottomTab.Navigator tabBarComponent={BottomHomeScreen}>
<BottomTab.Screen name={AppRoute.TODO} component={TodoNavigator}/>
<BottomTab.Screen name={AppRoute.PROFILE} component={ProfileNavigator}/>
</BottomTab.Navigator>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment