Install smartnav with npm
npm i smartnav
import { SmartxNav } from 'smartnav';
import { BrowserRouter } from 'react-router-dom';
const LINKS = [{
display: "MyDemo",
url: "/1",
},
{
display: "Products",
url: "/2",
},
{
display: "Finals",
url: "/3",
}]
export const Example = () =>
<>
<BrowserRouter>
<SmartxNav
bg='#0b4a91'
nav = LINKS
/>
</BrowserRouter>
</>
Props | Types | Description |
---|---|---|
bg | Str | Background colour for navbar with '#xxxxx' |
font | Str | String of React native Fonts |
nav | Object Array | Requires display and url fields |