Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-tab-bar-footer
Advanced tools
Navigation TabBar footer component for IOS and Android with slide animation which contains tab icon (normal and active) and title. You can use custom hat
React Element (component above the active tab), if you use custom hat
please provide also hatWidth
and hatHeight
.
In this lib I'm using Ripple component.
yarn add react-native-tab-bar-footer
import TabBar from 'react-native-tab-bar-footer'
...
const tabs = [
{
icon: star,
activeIcon: starActive,
title: 'Favorites'
},
{
icon: play,
activeIcon: playActive,
title: 'Play'
},
{
icon: user,
activeIcon: userActive,
title: 'Profile'
},
]
render() {
return <TabBar onTabChange={(index) => alert(index)} tabs={tabs} />
}
Prop | Default | Type | Description |
---|---|---|---|
tabs | [] | Array<Tab> | Tab objects |
initialIndex | 0 | number | Initial active tab |
onTabChange | undefined | func | onClick tab |
slideSpeed | 25 | number | tabBar animation speed |
slideBounciness | 10 | number | tabBar bounciness |
tabSize | 30 | number | tab size |
barColor | 'white' | color | tabBar color |
height | 60 | number | tabBar height |
titleStyle | - | style | title custom style |
iconStyle | - | style | icon custom style |
animationDuration | 200 | number | animation duration |
rippleProps | rippleCentered | object | Ripple component props |
hat | <View/> | React.Element<*> | Custom active hat component |
hatWidth | 78 | number | Active hat component width |
hatHeight | 78 | number | Active hat component height |
Tab object structure:
type Tab = {
icon: string|number,
activeIcon: string|number,
title: string
}
Feel free to open an issue
FAQs
Navigation tab bar footer component with animation
The npm package react-native-tab-bar-footer receives a total of 4 weekly downloads. As such, react-native-tab-bar-footer popularity was classified as not popular.
We found that react-native-tab-bar-footer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.