https://github.com/rhanb/nativescript-bottombar
Fancy bottom bar for NativeScript :smile: :beers:
https://github.com/rhanb/nativescript-bottombar
android angular bottom bottombar material menu nativescript navigation tabview
Last synced: 3 months ago
JSON representation
Fancy bottom bar for NativeScript :smile: :beers:
- Host: GitHub
- URL: https://github.com/rhanb/nativescript-bottombar
- Owner: rhanb
- License: apache-2.0
- Created: 2017-02-15T18:53:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T18:59:21.000Z (over 2 years ago)
- Last Synced: 2024-10-29T21:54:41.381Z (6 months ago)
- Topics: android, angular, bottom, bottombar, material, menu, nativescript, navigation, tabview
- Language: TypeScript
- Homepage:
- Size: 6.61 MB
- Stars: 65
- Watchers: 4
- Forks: 24
- Open Issues: 55
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/nativescript-bottombar)
[](https://www.npmjs.com/package/nativescript-bottombar)
[](https://twitter.com/_rhanb)[](https://travis-ci.org/rhanb/nativescript-bottombar)

[](https://nodei.co/npm/nativescript-bottombar/)
# NativeScript BottomBar :beers::fire::fr:
NativeScript plugin for [BottomNavigationView](https://github.com/aurelhubert/ahbottomnavigation) and [UITabBar](https://developer.apple.com/documentation/uikit/uitabbar).
PS: To have a material design on iOS too, free to use the plugin [nativescript-bottom-navigation](https://github.com/henrychavez/nativescript-bottom-navigation/)
No third libraries are used in this plugin, wich means this plugin is lightweight because only javascript files will be added to your app.
iOS | Android
-------- | ---------
 | ## Installation
`tns plugin add nativescript-bottombar@next`
## Usage
[API documentation](/API_DOCUMENTATION.md)
- [Angular](/demo-ng/README.md)
- [Vue](/demo-vue/README.md)
- [{N} core](/demo/README.md)## Common Usage
### Icons
The properties `icon` and `checkedIcon` supports the following path formats:
- `~/`: relative path to the app folder
- `res://`: icons must be in the App_Resources folder as follow| iOS | Android |
|:-------------------------------------------:|-----------------------------------------------------|
|  |  |### Ripple effect color on Android
To change the color of the ripple effect when an item is tapped, please add the following item to your `AppTheme` inside your `App_Resources` > `Android` > `src` > `main` > `res` > `values` > `styles.xml` file with the desired `color` resource.
```XML
<item name="colorControlHighlight">@color/ns_accent</item>
```
### Android support
You will need Support Library APIs v28 installed on your developer machine to be able to successfully use this plugin. If you already use the latest {N} version `5.0`, you should be good to go.
## More details
[API documentation](/API_DOCUMENTATION.md)
### TODO
- [ ] Allow to hide/show the `BottomBar`
- [ ] Expose more `BottomBarItem` customisation (font, position, etc..)
- [ ] Expose selection indicator on `iOS`
- [ ] Implement more `unit` tests and `e2e` tests