Skip to content

Instantly share code, notes, and snippets.

@LuffyAnshul
Created May 15, 2021 14:56
Show Gist options
  • Save LuffyAnshul/87f6ac3b9a3262f08481b25b3aad4bd9 to your computer and use it in GitHub Desktop.
Save LuffyAnshul/87f6ac3b9a3262f08481b25b3aad4bd9 to your computer and use it in GitHub Desktop.
<SignatureCapture
style={styles.signature}
ref={sign}
onSaveEvent={_onSaveEvent}
onDragEvent={_onDragEvent}
showNativeButtons={false}
showTitleLabel={false}
viewMode={'portrait'}
/>
<View style={{flexDirection: 'row'}}>
<TouchableHighlight
style={styles.buttonStyle}
onPress={() => {
saveSign();
}}>
<Text>Save</Text>
</TouchableHighlight>
<TouchableHighlight
style={styles.buttonStyle}
onPress={() => {
resetSign();
}}>
<Text>Reset</Text>
</TouchableHighlight>
</View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment