react-native-action-button icon indicating copy to clipboard operation
react-native-action-button copied to clipboard

ActionButton.Item, onPress doesn't change route

Open pauloarn opened this issue 4 years ago • 0 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>

pauloarn avatar Feb 09 '20 22:02 pauloarn