react-native-drawing-board
v0.0.3
Published
A drawing board for React Native
Downloads
2
Readme
Drawing Pad Library 🖋️
A lightweight and customizable writing pad component for React Native!
Perfect for creating a drawing pad, signature pad, or simply a canvas for your app users.
✨ Features
- 🖍️ Smooth drawing experience with cubic bezier curves.
- ✏️ Fully customizable - control pen colors, stroke thickness, and more.
- 🎨 Support for saving as images (PNG, JPG).
- 🔄 Clear and reset canvas functionality.
- 📱 Optimized for both Android and iOS.
🛠️Installation
yarn add react-native-drawing-boardor
npm install --save react-native-drawing-boardProperties
| Prop | Type | Description |
| :---------------------------------- | :--------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------- |
| viewShotRef | ref | A React reference. |
| path | array | A state variable to store the path of the drawing.|
| setPath | function | A function to update the path value whenever the drawing is saved or cleared.|
Notes
ref: A React reference.path: A state variable to store the path of the drawing.setPath: A function to update the path value whenever the drawing is saved or cleared.
