Skip to content

Commit a479683

Browse files
authored
Merge pull request #19514 from ahmedGaber93/issue-19051
update QRCode logo propType
2 parents 419395d + 720730c commit a479683

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/QRCode/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const propTypes = {
1010
url: PropTypes.string.isRequired,
1111
/**
1212
* The logo which will be displayed in the middle of the QR code.
13-
* Follows `ImageSourcePropType` from react-native.
13+
* Follows ImageProps href from react-native-svg that is used by react-native-qrcode-svg.
1414
*/
15-
logo: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string}), PropTypes.number]),
15+
logo: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string}), PropTypes.number, PropTypes.string]),
1616
/**
1717
* The QRCode size
1818
*/

src/components/QRShare/propTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const qrSharePropTypes = {
1616
/**
1717
* The logo which will be display in the middle of the QR code
1818
*/
19-
logo: PropTypes.string,
19+
logo: PropTypes.oneOfType([PropTypes.shape({uri: PropTypes.string}), PropTypes.number, PropTypes.string]),
2020
};
2121

2222
const defaultProps = {

0 commit comments

Comments
 (0)