profile
viewpoint

Ask questionsFeature Request: add the complete output of `sketchCanvas.getPaths()` to the canvas at once

This may or may not be more efficient than just looping .forEach() over the Array<Path> objects (it would probably save a little bit of noise for paths that have MANY MANY strokes), but also it just saves a lot of boilerplate code written in a lot of other code bases. :P

The use case is e.g. saving the getPaths() output to a server and downloading it on a new device via some new function addPaths(Array<Path>) in addition to addPath(Path).

May be related to #65, though that issue appears to have other things going on so let's not conflate the two.

terrylinla/react-native-sketch-canvas

Answer questions ShaMan123

I'm looking into it. My guess this might enhance performance, as currently sending multiple commands over the bridge causes my app to crash. see my PR #99, it is WIP => this feature is for now supported by android alone and will cause ios to crash

useful!

Related questions

Feature Request: Set background image from URL on canvas. - react-native-sketch-canvas hot 1
undefined is not an object (evaluating '_reactNative.UIManager.RNSketchCanvas.Constants') hot 1
Cant get localSourceImage to load image from camera or gallery hot 1
Invariant Violation: requireNativeComponent: &#34;RNSketchCanvas&#34; was not found in the UIManager hot 1
UIManager['RNSketchCanvas'] is no longer supported hot 1
Invariant Violation: requireNativeComponent: "RNSketchCanvas" was not found in the UIManager hot 1
Github User Rank List