Skip to content

Commit

Permalink
create default value for onPress prop in GenericPressable
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed May 25, 2023
1 parent b4714d7 commit 857df4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Pressable/GenericPressable/PropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const pressablePropTypes = {
};

const defaultProps = {
onPress: undefined,
keyboardShortcut: undefined,
shouldUseHapticsOnPress: false,
shouldUseHapticsOnLongPress: false,
Expand Down

0 comments on commit 857df4b

Please sign in to comment.