1.0.7 • Published 2 years ago

rn-bottombar v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

rn-bottombar A customizable react-native-bottombar component for React Native projects. Use this open source library in your fresh React Native project for instant startup.

Table of Contents

Installation

To use rn-bottombar in your React Native project, simply install it using npm or yarn:

npm install react-native-bottombar
or
yarn add react-native-bottombar

Usage

To use the rn-bottombar component in your app, import it from the react-native-bottombar package and render it as the second component in your app after splash screen. You can customize the appearance and behavior of the rn-bottombar by passing in props.

How to use

import { InitialCustomBottomBar } from "rn-bottombar ";

function App() {
  return (
    <InitialCustomBottomBar
      useBottomText={true}
      ProfileText={"Profile"}
      SearchText={"Search"}
      HomeText={"Home"}
      EmailText={"Email"}
      SettingText={"Setting"}
      tab1Image={require("./src/assets/user.png")}
      tab2Image={require("./src/assets/search-interface-symbol.png")}
      tab3Image={require("./src/assets/home.png")}
      tab4Image={require("./src/assets/email.png")}
      tab5Image={require("./src/assets/setting.png")}
      tab1Component={<Profile />}
      tab2Component={<Search />}
      tab3Component={<Home />}
      tab4Component={<Email />}
      tab5Component={<Setting />}
    />
  );
}

Props

The InitialCustomBottomBar component accepts the following props:

Prop NameData TypeDescription
useBottomTextboolText under bottom tabs
---------------------------------
tab1ImageanyImage for tab1
---------------------------------
tab2ImageanyImage for tab2
---------------------------------
tab3ImageanyImage for tab3
---------------------------------
tab4ImageanyImage for tab4
---------------------------------
tab5ImageanyImage for tab5
---------------------------------
tab1ComponentanyComponent for tab1
---------------------------------
tab2ComponentanyComponent for tab2
---------------------------------
tab3ComponentanyComponent for tab3
---------------------------------
tab4ComponentanyComponent for tab4
---------------------------------
tab5ComponentanyComponent for tab5
---------------------------------
bottomBarItemStyleanyStyle to tabs
---------------------------------
bottomBarImageStyleanyStyle to bottom Images
---------------------------------
BottomTextStyleanyBottom text style
---------------------------------
bottomBarStyleanyStyle to whole bar
---------------------------------
ProfileTextanyYour Profile Text
---------------------------------
SearchTextanyYour Search Text
---------------------------------
HomeTextanyYour Home Text
---------------------------------
EmailTextanyYour Email Text
---------------------------------
SettingTextanyYour Setting Text

How to use

import { CurvedBottomTabBar } from "rn-bottombar ";

function App() {
  return (
    <CurvedBottomTabBar
      useText={true}
      ProfileText={"Profile"}
      SearchText={"Search"}
      EmailText={"Email"}
      SettingText={"Setting"}
      tab1Image={require("./src/assets/user.png")}
      tab2Image={require("./src/assets/search-interface-symbol.png")}
      tab3Image={require("./src/assets/home.png")}
      tab4Image={require("./src/assets/email.png")}
      tab5Image={require("./src/assets/setting.png")}
      tab1Component={<Profile />}
      tab2Component={<Search />}
      tab3Component={<Home />}
      tab4Component={<Email />}
      tab5Component={<Setting />}
    />
  );
}

Props

The CurvedBottomTabBar component accepts the following props:

Prop NameData TypeDescription
useTextboolText under bottom tabs
---------------------------------
tab1ImageanyImage for tab1
---------------------------------
tab2ImageanyImage for tab2
---------------------------------
tab3ImageanyImage for tab3
---------------------------------
tab4ImageanyImage for tab4
---------------------------------
tab5ImageanyImage for tab5
---------------------------------
tab1ComponentanyComponent for tab1
---------------------------------
tab2ComponentanyComponent for tab2
---------------------------------
tab3ComponentanyComponent for tab3
---------------------------------
tab4ComponentanyComponent for tab4
---------------------------------
tab5ComponentanyComponent for tab5
---------------------------------
bottomBarStyleanyStyle to whole bar
---------------------------------
bottomBarItemStyleanyStyle to tabs
---------------------------------
centerIconViewStyleanyStyle to center tab
---------------------------------
BottomTextStyleanyBottom text style
---------------------------------
centerIconStyleanyStyle to center tab Icon
---------------------------------
ProfileTextanyYour Profile Text
---------------------------------
SearchTextanyYour Search Text
---------------------------------
EmailTextanyYour Email Text
---------------------------------
SettingTextanyYour Setting Text

How to use

import { TriosBottomBar } from "rn-bottombar ";

function App() {
  return (
    <TriosBottomBar
      useBottomText={true}
      EmailText={"Email"}
      HomeText={"Home"}
      ProfileText={"Profile"}
      tab3Image={require("./src/assets/user.png")}
      tab2Image={require("./src/assets/home.png")}
      tab1Image={require("./src/assets/email.png")}
      tab1Component={<Profile />}
      tab2Component={<Home />}
      tab3Component={<Email />}
    />
  );
}

Props

The TriosBottomBar component accepts the following props:

Prop NameData TypeDescription
useBottomTextboolText under bottom tabs
---------------------------------
tab1ImageanyImage for tab1
---------------------------------
tab2ImageanyImage for tab2
---------------------------------
tab3ImageanyImage for tab3
---------------------------------------
tab1ComponentanyComponent for tab1
---------------------------------------
tab2ComponentanyComponent for tab2
---------------------------------
tab3ComponentanyComponent for tab3
---------------------------------
bottomBarStyleanyStyle to whole bar
---------------------------------
bottomBarItemStyleanyStyle to tabs
---------------------------------
bottomBarImageStyleanyStyle to tabs Images
---------------------------------
BottomTextStyleanyBottom text style
---------------------------------
centerBtnStyleanyStyle to center Button
---------------------------------
ProfileTextanyYour Profile Text
---------------------------------
EmailTextanyYour Email Text
---------------------------------
HomeTextanyYour Home Text

Contributors

We would like to thank the following developers for their contributions to this project:

To all our contributors, thank you for your hard work and dedication!

License

This package is released under the MIT License.

1.0.7

2 years ago

1.0.6

2 years ago

1.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago