You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rn-fab-animated

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-fab-animated

A FAB button component for Android and iOS, customizable, simple and as per material design specs.

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

rn-fab

Based on the react-native-fab

A FAB button component for Android and iOS, customizable, simple and as per material design specs.

FAB demo with snackbar

See Google Material Design for more info on FABs.

Installation

npm install --save react-native-fab

Basic Usage

import FAB from 'react-native-fab'

Code

<FAB buttonColor="red" iconTextColor="#FFFFFF" onClickAction={() => {console.log("FAB pressed")}} visible={true} iconTextComponent={<Icon name="all-out"/>} />

Options

PropTypeEffectDefault Value
visiblebooleanShow or hide the FABtrue
buttonColorstringThe color of FABred
onClickActionfunctionFunction to be called when button is pressed()=>{}
iconTextColorcolorThe color of icon of FAB#FFFFFF
iconTextComponentcomponentText component or any other component based on it, works great with Icon from react-native-vector-icons<Text>+</Text>
snackOffsetnumberThe amount by which to move up the FAB to accomodate snackbar0

Note

  • When visible prop is changed, the FAB will be animated in/out of screen.
  • This works great together with react-native-snackbar-component. See demo for example and instructions how to.

Keywords

react-native

FAQs

Package last updated on 16 Jul 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