react-native-animated-floating-button
TypeScript icon, indicating that this package has built-in type declarations

0.1.28 • Public • Published

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

Name Description Type Default Value
images array of images, how many button of images open when onMenuClick array required
menuImage main image icon image required
onMenuClick retrun menu is open or not ()=>Node required
onIconClick retrun icon index when you click on item ()=>Node required

Package Sidebar

Install

npm i react-native-animated-floating-button

Weekly Downloads

2

Version

0.1.28

License

MIT

Unpacked Size

44.8 kB

Total Files

25

Last publish

Collaborators

  • rutvikp