mastermoo / react-native-action-button

customizable multi-action-button component for react-native
MIT License
2.52k stars 570 forks source link

ActionButton.Item, onPress doesn't change route #335

Open pauloarn opened 4 years ago

pauloarn commented 4 years ago

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.Item buttonColor='#006300' onPress={() => console.log("notes tapped!")}>

                        </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>`