I have the following two buttons:
<View style={styles.button}>
<Button title="ADD" onPress={createDocumentHandler}/>
</View>
<View style={styles.button}>
<Button title="CANCEL" color="red" onPress={props.onCancel}/>
</View>
I want the first button to trigger both the "createDocumentHandler" function and the "props.onCancel" function
I thought it would be as easy as onPress={createDocumentHandler, props.onCancel}
but that only triggers the second method for some reason