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

react-native-floating-action-button

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-floating-action-button

Fully customizable Floating Action Button for React Native.

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

React Native Bottom Bar

Fully customizable floating action button component for React Native.

npm version npm downloads License: MIT

React Native Floating Action Button

Installation

Add the dependency:

npm i react-native-floating-action-button

Basic Usage

<FloatingActionButton
    iconName="md-share"
    iconType="ionicon"
    iconColor="purple"
    text="Share"
    textColor="purple"
    shadowColor="purple"
    rippleColor="purple"
/>

Example Application

  • I just shared the example project on Expo, simply run on your device to check what it is: via Expo OR check the code, and yes! :) all of the images, screenshots are directly taken from the this example. Of course, you can simply clone the project and run the example on your own environment.

Configuration - Props

BottomBar:
PropertyTypeDefaultDescription
stylestylecontaineruse this to change the main FAB's style
containerStylestylecontainerStyleuse this to change the main container style (Do not recommended!)
shadowStylestyleshadowStylechanges the FAB's current shadow style, you can implement your own shadow
materialShadowbooleanfalsemakes the special material shadow style like shown as example
shadowColorcolor#B2B2B2use this to change FAB's shadow color
rippleColorcolorrgba(110, 157, 251, 1.0)use this to change FAB's ripple color
rippleContainerBorderRadiusnumber35use this to change FAB's ripple container border radius if you have a custom container style with different radius, you need to use this
disabledbooleanfalsedisabled the ripple effect
iconNamestringnull(will be fixed)changes the icon itself with using react-native-vectors
iconTypestringnull(will be fixed)changes the icon itself with using react-native-vectors
iconSizenumber30changes the inside of the icon's size
iconComponentcomponentIcon(react-native-elements)it uses the react-native-element's Icon component, you can implement your own component rather than Icon
textDisablebooleanfalseuse this to change disable bottom text, if you just need to use button itself
textstringnulluse this to change below text
textColorcolorsrgba(110, 157, 251, 1.0)use this to change below text color
textStylestyletextStyleuse this to change below text style itself

Credits

Special thanks to n4kz, RN Material Ripple for bringing to life Floating Action Button :) Material Ripple should be on built-in feature in React Native.

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Floating Action Button Library is available under the MIT license. See the LICENSE file for more info.

Keywords

FAQs

Package last updated on 16 Nov 2018

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