Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
31Karishma opened this issue Feb 2, 2022 · 1 comment

Comments

@31Karishma
Copy link

31Karishma commented Feb 2, 2022

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
Copy link

Hi @terrylinla

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants