/* eslint react/prop-types: 0 */ /* global alert */ /** @type {AppStorage} */ import React, { Component } from 'react'; import Ionicons from 'react-native-vector-icons/Ionicons'; import PropTypes from 'prop-types'; import { Icon, Button, FormLabel, FormInput, Text, Header, List, ListItem } from 'react-native-elements'; import { TouchableOpacity, TouchableWithoutFeedback, Animated, ActivityIndicator, View, UIManager, StyleSheet, Dimensions, Image, SafeAreaView, Clipboard, Platform, LayoutAnimation, TextInput, } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import { LightningCustodianWallet } from './class'; import Carousel from 'react-native-snap-carousel'; import DeviceInfo from 'react-native-device-info'; import { BitcoinUnit } from './models/bitcoinUnits'; import NavigationService from './NavigationService'; import ImagePicker from 'react-native-image-picker'; import WalletGradient from './class/walletGradient'; const LocalQRCode = require('@remobile/react-native-qrcode-local-image'); let loc = require('./loc/'); /** @type {AppStorage} */ let BlueApp = require('./BlueApp'); const { height, width } = Dimensions.get('window'); const aspectRatio = height / width; let isIpad; if (aspectRatio > 1.6) { isIpad = false; } else { isIpad = true; } export class BlueButton extends Component { render() { const backgroundColor = this.props.disabled ? '#99a0ab' : '#ccddf9'; return ( {this.props.icon && } {this.props.title && {this.props.title}} ); } } export class BitcoinButton extends Component { render() { return ( { // eslint-disable-next-line if (this.props.onPress) this.props.onPress(); }} > {loc.wallets.add.bitcoin} ); } } export class LightningButton extends Component { render() { return ( { // eslint-disable-next-line if (this.props.onPress) this.props.onPress(); }} > {loc.wallets.add.lightning} ); } } export class BlueButtonLink extends Component { render() { // eslint-disable-next-line this.props.buttonStyle = this.props.buttonStyle || {}; return (