New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@paraboly/react-native-switch-fab

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paraboly/react-native-switch-fab

Animated & Fully Customizable Switch Floating Action Button for React Native by Paraboly

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
3
Weekly downloads
 
Created
Source
React Native SwitchFab by Paraboly

Battle Tested ✅

Animated & Fully Customizable Switch Floating Action Button for React Native by Paraboly

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native SwitchFab by Paraboly React Native SwitchFab by Paraboly

Installation

Add the dependency:

npm i @paraboly/react-native-switch-fab

Peer Dependencies

IMPORTANT! You need install them
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-androw": ">= 0.0.34",
"react-native-dynamic-vector-icons": ">= 0.2.1",
"react-native-material-ripple": ">= 0.9.1",
"react-native-vector-icons": ">= 6.6.0"

Usage

Import

import SwitchFab from "@paraboly/react-native-switch-fab";

Usage

Basic Usage

<SwitchFab />

Advanced Usage

Check the example for the multiple & advanced usage

<SwitchFab
  name="atom"
  type="Fontisto"
  rippleColor="transparent"
  activeBGColor="#00B1D2FF"
  inactiveBGColor="#FDDB27FF"
/>

Configuration - Props

PropertyTypeDefaultDescription
widthstring/number50change the width of the button
heightstring/number50change the height of the button
borderRadiusnumber25change the border radius of the button
IconComponentIcon ComponentIcon (from react-native-dynamic-vector-icons)set your own Icon component it can be your own MyIcon component or react-native-vector-icons or anything
isActivebooleanfalseset the default active button
onPressfunctionundefinedset your own logic for onPress it has callback for (isActive)
animationDurationnumber750change the animation duration for background color transition
shadowColorcolor#757575change the button's shadow color
activeBGColorcolor#757575change the button's active background color
inactiveBGColorcolor#fdfdfdchange the button's inactive background color
activeIconColorcolor#757575change the button's active icon color
inactiveIconColorcolor#fdfdfdchange the button's inactive icon color
animationDurationnumber750change the animation duration for background color transition
animationDurationnumber750change the animation duration for background color transition

Future Plans

  • LICENSE
  • New Screenshots
  • Write an article about the lib on Medium

Author

FreakyCoder, kurayogun@gmail.com

License

React Native SwitchFab by Paraboly is available under the MIT license. See the LICENSE file for more info.

Keywords

FAQs

Package last updated on 07 Jan 2020

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