react-native-action-button
react-native-action-button copied to clipboard
ActionButton.Item, onPress doesn't change route
When i give a function to my onPress property, it doesn't executes the function
Example in the code below
The function Terte should display an Alert just for test
<ActionButton buttonColor="#006300" position = 'right' radius = {90} degress = {20}> <ActionButton.Item buttonColor='#006300' onPress={() => console.log("notes tapped!")}> <Icon2 name="clear" style={styles.actionButtonIcon} /> </ActionButton.Item> <ActionButton.Item buttonColor='#006300' onPress={() => {}}> <Icon2 name="create" style={styles.actionButtonIcon} /> </ActionButton.Item> <ActionButton.Item buttonColor='#006300' onPress = {()=> this.Terte()}> <Icon2 name="add-a-photo" style={styles.actionButtonIcon}/> </ActionButton.Item>