Skip to content

Commit

Permalink
Warning: Failed prop type: Invalid prop textMessage supplied to Snack…
Browse files Browse the repository at this point in the history
…barComponent

Solving issue sidevesh#91
  • Loading branch information
balsick authored Jul 17, 2023
1 parent db0d37a commit 36861d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ SnackbarComponent.propTypes = {
left: PropTypes.number,
right: PropTypes.number,
top: PropTypes.number,
bottom: PropTypes.number,
bottom: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Animated.Value)]),
visible: PropTypes.bool,
actionText: PropTypes.string,
textMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
textMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
position: PropTypes.oneOf(['bottom', 'top']), // bottom (default), top
// eslint-disable-next-line react/no-unused-prop-types
autoHidingTime: PropTypes.number, // How long (in milliseconds) the snack bar will be hidden.
Expand Down

0 comments on commit 36861d6

Please sign in to comment.