import React, { Component } from 'react'; import { ScrollView, Linking, Dimensions, Platform } from 'react-native'; import { BlueTextCentered, BlueLoading, BlueSpacing20, BlueButton, SafeBlueArea, BlueCard, BlueText, BlueNavigationStyle, } from '../../BlueComponents'; import PropTypes from 'prop-types'; import DeviceInfo from 'react-native-device-info'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); const { width, height } = Dimensions.get('window'); const loc = require('../../loc/'); export default class About extends Component { static navigationOptions = () => ({ ...BlueNavigationStyle(), title: loc.settings.about, }); constructor(props) { super(props); this.state = { isLoading: true, }; } async componentDidMount() { this.setState({ isLoading: false, }); } render() { if (this.state.isLoading) { return ; } return ( BlueWallet is a free and open source Bitcoin wallet. Licensed MIT. Always backup your keys { Linking.openURL('https://github.com/BlueWallet/BlueWallet'); }} title="github.com/BlueWallet/BlueWallet" /> { Linking.openURL('https://twitter.com/bluewalletio'); }} title="Follow us on Twitter" /> { Linking.openURL('https://t.me/bluewallet'); }} title="Join Telegram chat" /> { if (Platform.OS === 'ios') { Linking.openURL('https://itunes.apple.com/us/app/bluewallet-bitcoin-wallet/id1376878040?l=ru&ls=1&mt=8'); } else { Linking.openURL('https://play.google.com/store/apps/details?id=io.bluewallet.bluewallet'); } }} title="Leave us a review on Appstore" /> Built with awesome: * React Native * Bitcoinjs-lib * blockcypher.com API * Nodejs * react-native-elements * rn-nodeify * bignumber.js { this.props.navigation.navigate('Selftest'); }} title="Run self test" /> {DeviceInfo.getApplicationName()} ver {DeviceInfo.getVersion()} (build number {DeviceInfo.getBuildNumber()}) {DeviceInfo.getBundleId()} w, h = {width}, {height} ); } } About.propTypes = { navigation: PropTypes.shape({ navigate: PropTypes.func, goBack: PropTypes.func, }), };