react-native-signature-canvas
react-native-signature-canvas copied to clipboard
custom button
can i use it without footer part , and add my custom ok/clear buttons
Yes, you can use webStyle prop via display: none to hidden button element, and add React Native Button Component to control read signature or clear signature.https://github.com/YanYuanFE/react-native-signature-canvas#methods https://github.com/YanYuanFE/react-native-signature-canvas#basic-parameters;
const webStyle = `.m-signature-pad--footer
.save {
display: none;
}
.clear {
display: none;
}
`;
...
<Signature
webStyle={webStyle}
onOK={handleOK}
onEmpty={handleEmpty}
onEnd={handleEnd}
/>
https://github.com/YanYuanFE/react-native-signature-canvas#custom-button-for-confirm-and-clear