// @flow import React from 'react'; import { Text, View } from 'react-native'; import Address from '../address'; import Button from '../button'; import walletStyle from '../../styles/wallet'; type Props = { checkAddressIsMine: string => void, receiveAddress: string, getNewAddress: () => void, gettingNewAddress: boolean, }; class WalletAddress extends React.PureComponent { componentWillMount() { const { checkAddressIsMine, receiveAddress, getNewAddress } = this.props; if (!receiveAddress) { getNewAddress(); } else { checkAddressIsMine(receiveAddress); } } render() { const { receiveAddress, getNewAddress, gettingNewAddress } = this.props; return ( Receive Credits Use this wallet address to receive credits sent by another user (or yourself).