You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the code works fine and as desired in android but in ios it works only once and then it doesn't and sometimes it didn'teven work for the first time when app is loaded
I even downgraded my packages to the versions that I had used in another app of mine but no success
I am trying to get users signature in my app
the code works fine and as desired in android but in ios it works only once and then it doesn't and sometimes it didn'teven work for the first time when app is loaded
I even downgraded my packages to the versions that I had used in another app of mine but no success
below is my code for that
//SignatureView
<View
style={{
width: wp(90),
height: 280,
borderWidth: 1,
borderStyle: 'dashed',
borderRadius: 12,
borderColor: 'rgba(255, 243, 220, .2)',
}}>
<SignatureScreen
ref={signRef}
autoClear={true}
onOK={handleOK}
onClear={handleClearSignature}
scrollable={false}
webStyle={webStyle}
webviewContainerStyle={{backgroundColor: 'transparent'}}
trimWhitespace={true}
penColor="black"
androidLayerType="none"
onBegin={() => setDisableScroll(true)}
onEnd={() => setDisableScroll(false)}
/>
const webStyle =
.m-signature-pad--footer { display: none; margin: 0px; padding: 0px; background-color: transparent; } .m-signature-pad { background-color: transparent; border: 0; } .m-signature-pad--body { border: none; }
;};
const handleClearSignature = () => {
setSignatureData(null);
setSignatureUrl(null);
signRef.current?.clearSignature();
};
//package.json
"react-native-signature-canvas": "^4.7.1",
"react-native-webview": "^13.6.2",
//Xcode version
15.1
//simulator
iphone 15 Pro - ios 17.2
The text was updated successfully, but these errors were encountered: