Skip to content

Commit

Permalink
Fix listViewDisplayed warning with propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryk authored and bell-steven committed Apr 26, 2021
1 parent 2a697a6 commit 253f844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GooglePlacesAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,8 @@ GooglePlacesAutocomplete.propTypes = {
keyboardShouldPersistTaps: PropTypes.oneOf(['never', 'always', 'handled']),
listEmptyComponent: PropTypes.func,
listUnderlayColor: PropTypes.string,
listViewDisplayed: PropTypes.oneOf(['auto', PropTypes.bool]),
// Must write it this way: https://stackoverflow.com/a/54290946/7180620
listViewDisplayed: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['auto'])]),
keepResultsAfterBlur: PropTypes.bool,
minLength: PropTypes.number,
nearbyPlacesAPI: PropTypes.string,
Expand Down

0 comments on commit 253f844

Please sign in to comment.