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

Intermittent Issue with Multiple Signatures: Duplicate Saved Signatures #369

Open
oussamakh96 opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@oussamakh96
Copy link

Description:
Hello,

I encountered an issue when working with react-native-signature-canvas. In my use case, I have two signature canvases that need to be signed and validated simultaneously.

Occasionally (about 1 in 4 times), when saving both signatures, the same signature gets saved for both canvases, even though they are distinct.

I suspect the issue might be related to how the component handles unique identifiers for the saved signature data (e.g., filenames or temporary storage paths). Could you confirm if this is a known issue, or if there’s a workaround to prevent this conflict?

Steps to Reproduce:

Render two signature canvases simultaneously in a screen.
Sign both canvases with different signatures.
Save both signatures (e.g., using onOK callback or similar).
Observe that, in some cases (approximately 1/4 times), the saved signatures are identical.
Expected Behavior:
Each signature canvas should save its unique signature without overwriting or duplicating the other.

Thank you for your help and for maintaining this library!

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

1 participant