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

react-native-animated-swipe-button

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-animated-swipe-button

A custom component of an animated swipe button

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source
  • A custom component of an animated swipe button with gradient colors, in typescript.

  • It comes with a built-in TypeScript typings and is compatible with all popular JavaScript frameworks. You can use it directly or leverage well-maintained wrapper packages that allow for a more native integration with your frameworks of choice.

Example:

How to use:

import SwipeButton from 'react-native-animated-swipe-button';

   <SwipeButton
          onToggle={(isToggled) => {
            const time = setTimeout(() => {
              onPressCheckIn(isToggled);
              clearTimeout(time);
            }, 500);
          }}
          isToggled={isCheckedIn}
          width={width * 0.7}
          height={70}
          padding={5}
          gradiantColors={[
            GlobalColors.Brand.thierd,
            GlobalColors.Brand.secondary,
          ]}
          buttonColors={[
            GlobalColors.Brand.secondary,
            GlobalColors.Brand.thierd,
          ]}
        />

DateInput Props -

NameTypeDefault
onToggle(isToggled: boolean) => void
isToggledboolean
width?number
height?number
padding?number
containerStyle?ViewStyle
gradiantColors?string[]
buttonColors?string[]
textBeforeSwipeStyle?TextStyle
textAfterSwipeStyle?TextStyle
textCheckIn?string
textCheckOut?string

Keywords

FAQs

Package last updated on 13 Aug 2024

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