Skip to content

Commit

Permalink
Merge pull request #19514 from ahmedGaber93/issue-19051
Browse files Browse the repository at this point in the history
update QRCode logo propType
  • Loading branch information
puneetlath authored May 25, 2023
2 parents 419395d + 720730c commit a479683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/QRCode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const propTypes = {
url: PropTypes.string.isRequired,
/**
* The logo which will be displayed in the middle of the QR code.
* Follows `ImageSourcePropType` from react-native.
* Follows ImageProps href from react-native-svg that is used by react-native-qrcode-svg.
*/
logo: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string}), PropTypes.number]),
logo: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string}), PropTypes.number, PropTypes.string]),
/**
* The QRCode size
*/
Expand Down
2 changes: 1 addition & 1 deletion src/components/QRShare/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const qrSharePropTypes = {
/**
* The logo which will be display in the middle of the QR code
*/
logo: PropTypes.string,
logo: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string}), PropTypes.number, PropTypes.string]),
};

const defaultProps = {
Expand Down

0 comments on commit a479683

Please sign in to comment.