react-native-draggable-item
v0.1.0
Published
Customizable TextInput and Image component which can be scaled, rotated, drag-dropped
Downloads
12
Readme
react-native-draggable-item
Customizable TextInput and Image component which can be scaled, rotated, drag-dropped
Installation
npm install react-native-draggable-item
Usage
import { DraggableItem } from 'react-native-draggable-item';
// ...
<DraggableItem
type="text"
value="Hello world"
isActive={isTextActive}
onItemPress={onTextItemPress}
onItemDoublePress={onTextItemDoublePress}
initialItemPosX={40}
initialItemPosY={40}
initialItemWidth={120}
initialItemHeight={60}
initialItemRotation={20}
onChangeEnd={onTextChangeEnd}
externalStyle={{ color: 'green', fontSize: 20 }}
disabled={false}
externalBorderStyle={{ borderWidth: 2, borderColor: 'red' }}
/>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library