Releases: BenJeau/react-native-draw
@benjeau/[email protected]
@benjeau/[email protected]
@benjeau/[email protected]
@benjeau/[email protected]
@benjeau/[email protected]
@benjeau/[email protected]
@benjeau/[email protected]
@benjeau/[email protected]
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 nowCanvas
. TheCanvas
component is less managed (has less state, need to provide more props, such as thecolor
,opacity
,thickness
) - The library is now split into two:
@benjeau/react-native-draw
for theCanvas
component@benjeau/react-native-draw-extras
for theCanvasControls
,BrushPreview
,BrushProperties
, andColorPicker
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
@benjeau/[email protected]
Release 0.6.0
0.6.0 (2022-02-06)
Features
Potential Breaking Change
If you are depending on the getPaths()
ref function, it now returns data structured differently. Please look at https://github.com/BenJeau/react-native-draw/blob/0b506a6e6ca55efbdf4f65b228763d0e8f01e101/src/types.ts for the new types (the data
and path
attributes are now nested in arrays to group paths with the same properties (opacity, color, and thickness). It also contains a combine
attribute where if true
means that the paths should be combined within one SVG path, or it should be treated as multiple different SVG paths.