Separated the drawing canvas, the brush properties, and the bottom controls instead of having only one Draw component that does everything
Things left
Update README
[x] With the new types
[x] With a new GIF
Update the Example
[x] For typical usage
[x] For the Canvas component
[x] For the CanvasControls component
[x] For the BrushPreview component
[x] For the BrushProperties component
[x] For the ColorPicker component
[x] For a complete example with everything CanvasControls, BrushProperties, and Canvas component (will point this to people who want something similar to the old behaviour with the current Draw component
Create separate packages
Need to figure out how to do this (probably easiest if I create two packages with react-native-bob - maybe lerna https://github.com/lerna/lerna)
[x] @benjeau/react-native-draw for the Canvas component (in the future, there will be both @benjeau/react-native-draw-svg and @benjeau/react-native-draw-skia to support both and not having to have everything installed)
[x] @benjeau/react-native-draw for the CanvasControls, BrushPreview, BrushProperties, andColorPicker
Changes
Draw
component that does everythingThings left
Canvas
componentCanvasControls
componentBrushPreview
componentBrushProperties
componentColorPicker
componentCanvasControls
,BrushProperties
, andCanvas
component (will point this to people who want something similar to the old behaviour with the currentDraw
componentreact-native-bob
- maybe lerna https://github.com/lerna/lerna)@benjeau/react-native-draw
for theCanvas
component (in the future, there will be both@benjeau/react-native-draw-svg
and@benjeau/react-native-draw-skia
to support both and not having to have everything installed)@benjeau/react-native-draw
for theCanvasControls
,BrushPreview
,BrushProperties
, andColorPicker
Related issues
closes #1 (since it will be optional) closes #21