Skip to content
Compare
Choose a tag to compare
@BenJeau BenJeau released this 07 Feb 18:25
· 11 commits to master since this release

0.7.0 (2022-02-07)

Major Update

This version brings many changes in the internal structure of the code, making it more modular, and will allow for different renderers to work. It also removes everything that is not strictly related to the drawing to a separate extras package.

Breaking Changes

  • Component Draw does not exists anymore, it is now Canvas. The Canvas component is less managed (has less state, need to provide more props, such as the color, opacity, thickness)
  • The library is now split into two:
    • @benjeau/react-native-draw for the Canvas component
    • @benjeau/react-native-draw-extras for the CanvasControls, BrushPreview, BrushProperties, and ColorPicker

To get the previous experience of the Draw component, please inspire yourself from the example in the README

  • @benjeau/react-native-draw does not require @react-native-community/slider dependency anymore

Features

  • big refactor to eliminate the need of unused parts (#44) (9a88db9)