FIX: Spacing issues on About and Receive

This commit is contained in:
Marcos Rodriguez Vélez 2018-09-30 17:27:46 -04:00
parent 94e2d55bef
commit ec82404510
No known key found for this signature in database
GPG key ID: 2C5D5738B268636C
3 changed files with 21 additions and 20 deletions

View file

@ -125,7 +125,7 @@ module.exports = {
},
},
receive: {
header: 'receive',
header: 'Receive',
details: {
title: 'Share this address with payer',
share: 'share',

View file

@ -11,7 +11,7 @@ let loc = require('../../loc');
export default class ReceiveDetails extends Component {
static navigationOptions = {
header: ({ navigation }) => {
return <BlueHeaderDefaultSub leftText={loc.receive.header} onClose={() => navigation.goBack(null)} />;
return <BlueHeaderDefaultSub leftText={loc.receive.header.toLowerCase()} onClose={() => navigation.goBack(null)} />;
},
};
@ -98,19 +98,21 @@ export default class ReceiveDetails extends Component {
</Animated.Text>
</TouchableOpacity>
</View>
<BlueButton
icon={{
name: 'share-alternative',
type: 'entypo',
color: BlueApp.settings.buttonTextColor,
}}
onPress={async () => {
Share.share({
message: this.state.address,
});
}}
title={loc.receive.details.share}
/>
<View style={{ marginBottom: 24 }}>
<BlueButton
icon={{
name: 'share-alternative',
type: 'entypo',
color: BlueApp.settings.buttonTextColor,
}}
onPress={async () => {
Share.share({
message: this.state.address,
});
}}
title={loc.receive.details.share}
/>
</View>
</View>
</SafeBlueArea>
);

View file

@ -46,9 +46,8 @@ export default class About extends Component {
return (
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
<BlueHeaderDefaultSub leftText={'about'} rightComponent={null} />
<BlueCard>
<ScrollView maxHeight={height - 100}>
<ScrollView>
<BlueCard>
<BlueText h4>BlueWallet is free and opensource Bitcoin wallet. Licensed MIT.</BlueText>
<BlueButton
@ -114,8 +113,8 @@ export default class About extends Component {
<BlueTextCentered>
{Constants.platform.ios.model} ({Constants.platform.ios.platform})
</BlueTextCentered>
</ScrollView>
</BlueCard>
</BlueCard>
</ScrollView>
</SafeBlueArea>
);
}