mastermoo / react-native-action-button

customizable multi-action-button component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ActionButton.Item, onPress doesn't change route

pauloarn opened this issue · comments

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>