YanYuanFE / react-native-signature-canvas

:black_nib: React Native Signature Component based WebView Canvas for Android && IOS && expo
MIT License
419 stars 150 forks source link

No ability to disable a signature pad #275

Open josh-thompson13 opened 1 year ago

josh-thompson13 commented 1 year ago

Does anyone know if there is a way to disable the signature pad? I want to 'lock' the pad after a user saves their signature.

YanYuanFE commented 1 year ago

This function is not available for the time being. I will consider adding this function in a few days

atefwahab commented 1 year ago

This function is not available for the time being. I will consider adding this function in a few days

hello have you added this ability??

kkaplinski commented 1 year ago

@atefwahab @josh-thompson13 I would suggest to just hide the signature pad and show signature in the <Image> component or just create overlay with position absolute. Adding some semi transparent overlay also would improve UX and suggest user that signature pad is disabled.

josh-thompson13 commented 1 year ago

@atefwahab @josh-thompson13 I would suggest to just hide the signature pad and show signature in the <Image> component or just create overlay with position absolute. Adding some semi transparent overlay also would improve UX and suggest user that signature pad is disabled.

Yes I did consider this but it does not suit my use case. I need the drawpad to actually be disabled. :)

rvmaher commented 9 months ago

Wrap your component in View or whatever you like and set prop of pointerEvents to none.