mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 12:18:10 +01:00
Merge branch 'master' into privacywidget
This commit is contained in:
commit
3ac191d1b5
2 changed files with 36 additions and 11 deletions
|
@ -232,7 +232,8 @@
|
|||
"about_review": "Leave us a review",
|
||||
"about_selftest": "Run self-test",
|
||||
"about_sm_github": "GitHub",
|
||||
"about_sm_telegram": "Telegram chat",
|
||||
"about_sm_discord": "Discord Server",
|
||||
"about_sm_telegram": "Telegram channel",
|
||||
"about_sm_twitter": "Follow us on Twitter",
|
||||
"advanced_options": "Advanced Options",
|
||||
"currency": "Currency",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { ScrollView, Linking, Image, View, Text, StyleSheet, useWindowDimensions } from 'react-native';
|
||||
import { TouchableOpacity, ScrollView, Linking, Image, View, Text, StyleSheet, useWindowDimensions } from 'react-native';
|
||||
import { useNavigation, useTheme } from '@react-navigation/native';
|
||||
import {
|
||||
BlueTextCentered,
|
||||
|
@ -10,6 +10,7 @@ import {
|
|||
BlueListItem,
|
||||
BlueNavigationStyle,
|
||||
} from '../../BlueComponents';
|
||||
import { Icon } from 'react-native-elements';
|
||||
import { getApplicationName, getVersion, getBundleId, getBuildNumber } from 'react-native-device-info';
|
||||
import Rate, { AndroidMarket } from 'react-native-rate';
|
||||
import loc from '../../loc';
|
||||
|
@ -53,6 +54,18 @@ const About = () => {
|
|||
paddingTop: 0,
|
||||
borderRadius: 8,
|
||||
},
|
||||
buttonLink :{
|
||||
backgroundColor: colors.lightButton,
|
||||
borderRadius: 12,
|
||||
justifyContent: 'center',
|
||||
padding: 8,
|
||||
flexDirection: 'row',
|
||||
},
|
||||
textLink :{
|
||||
color: colors.foregroundColor,
|
||||
marginLeft: 8,
|
||||
fontWeight: '600',
|
||||
},
|
||||
});
|
||||
|
||||
const handleOnReleaseNotesPress = () => {
|
||||
|
@ -71,14 +84,16 @@ const About = () => {
|
|||
Linking.openURL('https://twitter.com/bluewalletio');
|
||||
};
|
||||
|
||||
const handleOnGithubPress = () => {
|
||||
Linking.openURL('https://github.com/BlueWallet/BlueWallet');
|
||||
const handleOnDiscordPress = () => {
|
||||
Linking.openURL('https://discord.gg/btWq2Aby2z');
|
||||
};
|
||||
|
||||
const handleOnTelegramPress = () => {
|
||||
Linking.openURL('https://t.me/bluewallet');
|
||||
Linking.openURL('https://t.me/bluewallethat');
|
||||
};
|
||||
const handleOnGithubPress = () => {
|
||||
Linking.openURL('https://github.com/BlueWallet/BlueWallet');
|
||||
};
|
||||
|
||||
const handleOnRatePress = () => {
|
||||
const options = {
|
||||
AppleAppID: '1376878040',
|
||||
|
@ -126,12 +141,12 @@ const About = () => {
|
|||
/>
|
||||
<BlueListItem
|
||||
leftIcon={{
|
||||
name: 'github',
|
||||
type: 'font-awesome',
|
||||
color: colors.foregroundColor,
|
||||
name: 'discord',
|
||||
type: 'font-awesome-5',
|
||||
color: '#7289da',
|
||||
}}
|
||||
onPress={handleOnGithubPress}
|
||||
title={loc.settings.about_sm_github}
|
||||
onPress={handleOnDiscordPress}
|
||||
title={loc.settings.about_sm_discord}
|
||||
/>
|
||||
<BlueCard>
|
||||
<View style={styles.buildWith}>
|
||||
|
@ -143,6 +158,15 @@ const About = () => {
|
|||
<BlueTextCentered>bitcoinjs-lib</BlueTextCentered>
|
||||
<BlueTextCentered>Nodejs</BlueTextCentered>
|
||||
<BlueTextCentered>Electrum server</BlueTextCentered>
|
||||
<BlueSpacing20 />
|
||||
|
||||
<TouchableOpacity
|
||||
onPress={handleOnGithubPress}
|
||||
style={styles.buttonLink}
|
||||
>
|
||||
<Icon size={22} name="github" type="font-awesome-5" color={colors.foregroundColor} />
|
||||
<Text style={styles.textLink}>{loc.settings.about_sm_github}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</BlueCard>
|
||||
<BlueListItem
|
||||
|
|
Loading…
Add table
Reference in a new issue