0.1.0 • Published 2 years ago
@logo-rn/logo-navigation-drawer v0.1.0
@logo-rn/logo-navigation-drawer
allow user to navigate between screens with drawer.
Installation
Install the component:
npm i @logo-rn/logo-navigation-drawer -s
Usage
Once installed, import the component in your application:
import {LogoNavigationDrawer} from '@logo-rn/logo-navigation-drawer';
const DRAWER_TAB_LIST: { title: string, iconName?: string, navigate: string }[] = [
{
title: Profile,
iconName: "user",
navigate: 'ProfileScreen'
},
{
title: Home,
iconName: {i18n("1", lang)},
navigate: 'HomeScreen'
},
{
title: settings,
iconName: "settings",
navigate: 'SettingsScreen'
}
]
<LogoNavigationDrawer {...props} itemList={DRAWER_TAB_LIST} />