Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@vehikl/react-native-fab
Advanced tools
A FAB button component for Android and iOS, customizable, simple and as per material design specs.
A FAB button component for Android and iOS, customizable, simple and as per material design specs.
See Google Material Design for more info on FABs.
npm install --save react-native-fab
import FAB from 'react-native-fab'
<FAB buttonColor="red" iconTextColor="#FFFFFF" onClickAction={() => {console.log("FAB pressed")}} visible={true} iconTextComponent={<Icon name="all-out"/>} />
Prop | Type | Effect | Default Value |
---|---|---|---|
visible | boolean | Show or hide the FAB | true |
buttonColor | string | The color of FAB | red |
onClickAction | function | Function to be called when button is pressed | ()=>{} |
iconTextColor | color | The color of icon of FAB | #FFFFFF |
iconTextComponent | component | Text component or any other component based on it, works great with Icon from react-native-vector-icons | <Text>+</Text> |
snackOffset | number | The amount by which to move up the FAB to accomodate snackbar | 0 |
FAQs
A FAB button component for Android and iOS, customizable, simple and as per material design specs.
We found that @vehikl/react-native-fab 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.