Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_markByPosition = (type) => {
this._showLoading()
if (this.state.markImage) {
Marker.markImage({
src: this.state.image,
markerSrc: this.state.markImage,
position: type,
scale: 1,
markerScale: 1,
quality: 100,
saveFormat: this.state.saveFormat
}).then((path) => {
this.setState({
uri: this.state.saveFormat === ImageFormat.base64 ? path : Platform.OS === 'android' ? 'file://' + path : path,
show: true,
loading: false
})
}).catch((err) => {
console.log('====================================')
console.log(err, 'err')