Releases: MartinRapcan/react-native-simple-canvas
Releases · MartinRapcan/react-native-simple-canvas
v1.0.0
🎨 @darthrapid/react-native-simple-canvas v1.0.0
Release of a lightweight, SVG-based drawing canvas for React Native.
Features
- Freehand drawing — smooth touch-based drawing using PanResponder and react-native-svg
- Undo / Redo — full stroke history management via ref API
- Manual capture — save canvas as JPG/PNG image on demand with
capture() - Auto-capture — optional debounced capture after every stroke
- Customizable strokes — color, width, line cap, line join — all configurable via props and changeable on the fly
- Background color — fully customizable canvas background
- Initial image — display a previously saved drawing (e.g. in multistep forms), hidden once user starts drawing
- Disabled state — block touch input during capture or other async operations
- Stroke serialization —
getStrokes()/setStrokes()for saving and restoring drawings - Lifecycle callbacks —
onStrokeStart,onStrokeEnd,onStrokesChange - Zero native code — pure JS/TS library, works with Expo out of the box
Peer Dependencies
react>= 18react-native>= 0.72react-native-svg>= 15react-native-view-shot>= 4