Socket
Socket
Sign inDemoInstall

react-native-draggable-reanimated

Package Overview
Dependencies
521
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-draggable-reanimated

React Native Draggable View


Version published
Weekly downloads
91
increased by19.74%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

React Native Draggable Reanimated

npm version

This package help you easy to drag any view

This package requires these, please make sure you had installed them:

Demo

Getting started

$ npm install react-native-draggable-reanimated --save

  • OR

$ yarn add react-native-draggable-reanimated

  • All in one

$ npm install react-native-draggable-reanimated react-native-gesture-handler react-native-reanimated --save && cd ios && pod install

Usage

import DraggableView from 'react-native-draggable-reanimated';

<DraggableView
	initValue={{ x: 100, y: 100 }}
	onRelease={(val) => {
		console.log(val);
	}}>
	<View
		style={{
			backgroundColor: 'red',
			width: BOX_SIZE,
			height: BOX_SIZE,
		}}
	/>
</DraggableView>

License

This module is MIT licensed


Keywords

FAQs

Last updated on 16 May 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