react-native-custom-qr-codes icon indicating copy to clipboard operation
react-native-custom-qr-codes copied to clipboard

Possible way to set a tintColor for the logo

Open DreadCube opened this issue 5 years ago • 1 comments

Is there a possible way to set a tintColor for the Logo? Or could we add something like that?

DreadCube avatar Nov 27 '18 09:11 DreadCube

@DreadCube Could probably pass all image style props into the component with a new logoProps property, all the way through to the <Image/> that renders the logo. Don't have time right now but might have a look in a while.

The fix I'm imagining would involve:

  • Adding logoProps to propTypes and defaultProps in QRCode.js
  • Adding {...this.logoProps} to the <Image/> in displayLogo() of QRCode.js.

nating avatar Dec 20 '18 15:12 nating