Socket
Socket
Sign inDemoInstall

react-native-animated-floating-button

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-animated-floating-button

test


Version published
Weekly downloads
11
increased by120%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-animated-floating-button

animated button

animated button example

Installation

npm install react-native-animated-floating-button

Usage

import { AnimatedFloatingButton } from 'react-native-animated-floating-button'

// ...

let images = [
    { image: require('./assets/images/Pin.png') },
    { image: require('./assets/images/Love.png') }
  ]

<AnimatedFloatingButton
    onMenuClick={(res) => {
     console.log(res)
    }}
    onIconClick={(res) => {
     console.log(res)
    }}
    menuImage={require('./assets/images/Plus.png')}
    iconColors={'lightpink'}
    style={{ backgroundColor: 'lightpink' }}
    images={images}
/>

Properties

NameDescriptionTypeDefault Value
imagesarray of images, how many button of images open when onMenuClickarrayrequired
menuImagemain image iconimagerequired
onMenuClickretrun menu is open or not()=>Noderequired
onIconClickretrun icon index when you click on item()=>Noderequired

Keywords

FAQs

Last updated on 30 Dec 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc