Open nkscoder opened 6 years ago
+1 same issue trying to call this.canvasElement.save()
"@terrylinla/react-native-sketch-canvas": "~0.8.0", "react": "16.6.3", "react-native": "0.58.5",
does anyone know solution?
UPD:
just added arguments to functions get it work
this.canvasElement.save('png', false, 'RNSketchCanvas', String(Math.ceil(Math.random() * 100000000)), false, false, false);
@toryshadow The documentation is written poorly. Have you solved how to save sketch with localImage on background?
on save canvas savePreference={() => { return { folder: "CACHES", filename: 'image'+Math.ceil(Math.random() * 100000000), transparent: false, imageType: "png", includeImage:true } }} onSketchSaved={(success, path) => { Alert.alert(success ? 'Image saved!' : 'Failed to save image!', path) }} onPathsChange={(pathsCount) => { console.log('pathsCount', pathsCount) }} "@terrylinla/react-native-sketch-canvas": "^0.8.0", "eslint": "^3.19.0", "react": "16.3.1", "react-native": "~0.55.2",