Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-fab-button

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-fab-button

A customizable fab-button component.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rn-fab-button

platforms npm

A React Native Fab Button Component built using react-native animations providing the user ability to add buttons and customize them accordingly.

Prerequisites

Kindly install @react-native-vector-icons before you start using this component.

Table of content

  • Installation

    • yarn add rn-fab-button
    • npm i rn-fab-button
  • Usage

  • Props

  • Credits

Usage

import { FloatingButton } from "rn-fab-button";

<FloatingButton
  noOfButtons={2}
  icons={["example", "example"]}
  size={20}
  toggleBtnSize={20}
  width={40}
  height={40}
  onPress={() => console.log("running")}
  buttonBgColor={"green"}
  toggleButtonStyle={{ backgroundColor: "#8B008B" }}
  iconColor="white"
/>;

Props

Required

PropDescriptionTypeDefault
noOfButtonsNo of buttons to be displayedNumberRequired
iconsTakes an array of name of icons to renders into the buttons. Receives an object with array {['example','example']}ArryayRequired
widthWidth in pixels for the fab buttons, same for all of themNumberRequired for background of the icons
heightheight in pixels for the fab buttonsNumberRequired for background of the icons
toggleBtnSizeSize of the toggle buttonNumber**Required **
buttonBgColorbackground color of the buttonsStringOptional
toggleButtonStylestyling for the toggle buttonsStringOptional
iconColorcolor of the fab button iconsStringRequired
sizesize of the fab buttonsNumberRequried
onPresscallback when the fab button is pressedfunctionOptional

Credits

Written by Rachit Sharma (masquerade-x)

Keywords

FAQs

Package last updated on 26 Mar 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc