You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constonPress=jest.fn();render(<MyButtononPresss={()=>{console.log("This gets called, but shouldn't");onPress();}}/>);fireEvent.press(screen.getByTestId("ListItemPressable"));expect(onPress).toHaveBeenCalled();
Expected behavior
onPress should not be called.
Steps to Reproduce
The code above demonstrates how to reproduce this.
Describe the bug
This is essentially reopening #28 but this time for Pressable.
When onPress is not assigned to a Pressable, onPress is still called.
Expected behavior
onPress should not be called.
Steps to Reproduce
The code above demonstrates how to reproduce this.
Versions
The text was updated successfully, but these errors were encountered: