Expensify/react-native-qrcode-svg

Unable to hide component

Closed this issue · 4 comments

QRCode is unable to hide using style

<QRCode style={{visibility:"hidden"}} value={this.state.text} size={200} />

We're not passing style prop to the component currently. Can you wrap it with a component that you can control its style?

<View style={{visibility:"hidden"}}>
  <QRCode />
</View>

Yes, I already did that after submitting this issue, but my question is why is not possible setting directly in the QRCode component instead of wrapping with a view? It's possible or a bug?

It's possible. It looks like Svg component can accpet style prop. Would you like to submit a PR?

Sure no problem