Skip to content

Releases: MartinRapcan/react-native-simple-canvas

v1.0.0

14 Feb 00:28

Choose a tag to compare

🎨 @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 serializationgetStrokes() / setStrokes() for saving and restoring drawings
  • Lifecycle callbacksonStrokeStart, onStrokeEnd, onStrokesChange
  • Zero native code — pure JS/TS library, works with Expo out of the box

Peer Dependencies

  • react >= 18
  • react-native >= 0.72
  • react-native-svg >= 15
  • react-native-view-shot >= 4