import { NativeStackScreenProps } from '@react-navigation/native-stack'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { BlueCopyTextToClipboard } from '../../BlueComponents'; import { PaymentCodeStackParamList } from '../../Navigation'; import QRCodeComponent from '../../components/QRCodeComponent'; import loc from '../../loc'; type Props = NativeStackScreenProps; export default function PaymentCode({ route }: Props) { const { paymentCode } = route.params; return ( {!paymentCode && {loc.bip47.not_found}} {paymentCode && ( <> )} ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, });