terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
691 stars 450 forks source link

IOS Only: onPathsChange() & onSketchSaved() Method Not Working in IOS Device #219

Open 31Karishma opened 2 years ago

31Karishma commented 2 years ago

Hello I'm using react-native-sketch-canvas in my app and it's working perfectly well in android device, but in IOS device "onPathsChange" & "onSketchSaved" method is not working. Both methods are perfectly running in android devices but in IOS nothing happing not even display console log.

Version information....

react-native: "0.66.1" @terrylinla/react-native-sketch-canvas: "^0.8.0"

My code is :- <RNSketchCanvas ref={frontImageRef} containerStyle={{ backgroundColor: 'transparent', flex: 1, overflow: 'hidden', // height: 200, }} canvasStyle={{ backgroundColor: 'transparent', overflow: 'hidden', height: BaseSetting.nHeight / 1.5, width: BaseSetting.nWidth / 1.9, alignSelf: 'center', }} defaultStrokeIndex={2} strokeWidth={brushSize} onPathsChange={pathsCount => { console.log('onPathsChange ===========>', pathsCount); setFrontPathCount(pathsCount); }} onSketchSaved={(success, filePath) => { console.log( 'onSketchSaved ===========>', success, filePath, ); onCaptureFront(); }} />

May I did any Mistake? What Can i do to fix it. Please Help me. Thank you

dippathak26 commented 2 years ago

Hi @terrylinla

Do we have any update on this, as it works well in Android devices but not in IOS?

Thanks