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

onOk not triggered when signature pad small but i have another full screen that working fine #356

Open
Sureshkumar041 opened this issue Mar 25, 2024 · 3 comments

Comments

@Sureshkumar041
Copy link

1 . Not working <SignatureScreen
onBegin={() => setIsScrollEnabled(false)}
bgHeight={100}
trimWhitespace={true}
scrollable={false}
ref={signatureRef}
onClear={handleClear}
onEmpty={handleEmpty}
onEnd={handleEnd}
onOK={handleOK}
onGetData={handleData}
autoClear={false}
style={{
maxHeight: height * signHeight,
overflow: "hidden",
}}
webviewContainerStyle={{
maxHeight: height * signHeight,
}}
webStyle={webStyle}
penColor={colors.colors.black}
/>

const webStyle = .m-signature-pad { max-Height: ${height} * ${signHeight}, margin:0px !important; overflow: hidden !important; background: white !important; border: none !important; border: 2px dashed ${signColors?.border}; } .m-signature-pad--footer {display: none !important;};

2 Its working fine
<SignatureScreen
bgHeight={100}
trimWhitespace={true}
scrollable={false}
ref={signatureRef}
onEnd={handleEnd}
onOK={handleOK}
onEmpty={handleEmpty}
onClear={handleClear}
onGetData={handleData}
autoClear={false}
descriptionText={text}
style={{
maxHeight: height * 0.355,
backgroundColor: "white",
overflow: "hidden",
}}
webviewContainerStyle={{
maxHeight: height * 0.355,
backgroundColor: "white",
overflow: "hidden",
}}
webStyle={webStyle}
penColor={colors.colors.blue}
/>

const webStyle = .m-signature-pad { max-Height: ${height} * ${0.355}, overflow: hidden !important; background:${signColors?.card} !important; border: none !important; border: 2px dashed ${signColors?.border}; // border-radius: 12px; // box-shadow: 0px 0px 7px 4px ${signColors?.border}; } .m-signature-pad--footer {display: none !important;};

@Sureshkumar041 Sureshkumar041 changed the title onOk not triggered in screen space but i have another screen that working fine onOk not triggered when signature pad in small but i have another full screen that working fine Mar 25, 2024
@Sureshkumar041 Sureshkumar041 changed the title onOk not triggered when signature pad in small but i have another full screen that working fine onOk not triggered when signature pad small but i have another full screen that working fine Mar 25, 2024
@kenappthings
Copy link

Same issue. onOK is not working for me. It was before but for some reason it is not triggered when I stop drawing.

@Sureshkumar041
Copy link
Author

Now working fine ...?

Same issue. onOK is not working for me. It was before but for some reason it is not triggered when I stop drawing.
Now working fine ...?

@YanYuanFE
Copy link
Owner

@Sureshkumar041
https://github.com/YanYuanFE/react-native-signature-canvas/blob/master/example/sign-app/App.js
I just use your code to run this example, onOK work fine

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

3 participants