REF: decrease animated QR codes density

This commit is contained in:
Overtorment 2021-03-16 18:03:01 +00:00
parent 1248dfe3a6
commit c878f6a812
6 changed files with 6 additions and 6 deletions

View File

@ -1807,7 +1807,7 @@ export class DynamicQRCode extends Component {
fragments = []; fragments = [];
componentDidMount() { componentDidMount() {
const { value, capacity = 800 } = this.props; const { value, capacity = 200 } = this.props;
this.fragments = encodeUR(value, capacity); this.fragments = encodeUR(value, capacity);
this.setState( this.setState(
{ {

View File

@ -27,7 +27,7 @@ export class DynamicQRCode extends Component {
fragments = []; fragments = [];
componentDidMount() { componentDidMount() {
const { value, capacity = 800, hideControls = true } = this.props; const { value, capacity = 200, hideControls = true } = this.props;
try { try {
this.fragments = encodeUR(value, capacity); this.fragments = encodeUR(value, capacity);
this.setState( this.setState(

View File

@ -140,7 +140,7 @@ export default class SendCreate extends Component {
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}> <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<ScrollView> <ScrollView>
<BlueCard style={styles.card}> <BlueCard style={styles.card}>
{this.state.showAnimatedQr && this.state.psbt ? <DynamicQRCode value={this.state.psbt.toHex()} capacity={666} /> : null} {this.state.showAnimatedQr && this.state.psbt ? <DynamicQRCode value={this.state.psbt.toHex()} /> : null}
<BlueText style={styles.cardText}>{loc.send.create_this_is_hex}</BlueText> <BlueText style={styles.cardText}>{loc.send.create_this_is_hex}</BlueText>
<TextInput testID="TxhexInput" style={styles.cardTx} height={72} multiline editable value={this.state.tx} /> <TextInput testID="TxhexInput" style={styles.cardTx} height={72} multiline editable value={this.state.tx} />

View File

@ -72,7 +72,7 @@ const PsbtMultisigQRCode = () => {
<SafeBlueArea style={[styles.root, stylesHook.root]}> <SafeBlueArea style={[styles.root, stylesHook.root]}>
<ScrollView centerContent contentContainerStyle={styles.scrollViewContent}> <ScrollView centerContent contentContainerStyle={styles.scrollViewContent}>
<View style={[styles.modalContentShort, stylesHook.modalContentShort]}> <View style={[styles.modalContentShort, stylesHook.modalContentShort]}>
<DynamicQRCode value={psbt.toHex()} capacity={666} /> <DynamicQRCode value={psbt.toHex()} />
{!isShowOpenScanner && ( {!isShowOpenScanner && (
<> <>
<BlueSpacing20 /> <BlueSpacing20 />

View File

@ -281,7 +281,7 @@ const PsbtWithHardwareWallet = () => {
<Text testID="PSBTHex" style={styles.hidden}> <Text testID="PSBTHex" style={styles.hidden}>
{psbt.toHex()} {psbt.toHex()}
</Text> </Text>
<DynamicQRCode value={psbt.toHex()} capacity={200} /> <DynamicQRCode value={psbt.toHex()} />
<BlueSpacing20 /> <BlueSpacing20 />
<SecondButton <SecondButton
testID="PsbtTxScanButton" testID="PsbtTxScanButton"

View File

@ -79,7 +79,7 @@ const ExportMultisigCoordinationSetup = () => {
<BlueText style={[styles.type, stylesHook.type]}>{wallet.getLabel()}</BlueText> <BlueText style={[styles.type, stylesHook.type]}>{wallet.getLabel()}</BlueText>
</View> </View>
<BlueSpacing20 /> <BlueSpacing20 />
<DynamicQRCode value={qrCodeContents.current} capacity={400} /> <DynamicQRCode value={qrCodeContents.current} />
<BlueSpacing20 /> <BlueSpacing20 />
{isShareButtonTapped ? ( {isShareButtonTapped ? (
<ActivityIndicator /> <ActivityIndicator />