Skip to content

Commit

Permalink
fix qr codes (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Barbieri authored Feb 15, 2019
1 parent 1788a0e commit 821f23d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/components/AccountDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class AccountDetails extends Component {
onShare = () => {
const { selectedAddress } = this.props;
Share.open({
message: `${strings('account_details.share_public_key')} ${selectedAddress}`
message: `ethereum:${selectedAddress}`
}).catch(err => {
Logger.log('Error while trying to share address', err);
});
Expand Down Expand Up @@ -249,12 +249,7 @@ class AccountDetails extends Component {

<View style={styles.detailsWrapper}>
<View style={styles.qrCode}>
<QRCode
value={selectedAddress}
size={Dimensions.get('window').width - 120}
backgroundColor={colors.fontPrimary}
color={colors.white}
/>
<QRCode value={`ethereum:${selectedAddress}`} size={Dimensions.get('window').width - 120} />
</View>
<View style={styles.addressWrapper}>
<Text style={styles.address} testID={'public-address-text'}>
Expand Down

0 comments on commit 821f23d

Please sign in to comment.