Skip to content

minhchienwikipedia/react-native-draggable-reanimated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Draggable Reanimated

npm version

This package help you easy to drag any view


fateh999





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


About

React Native Draggable View

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published