Merge pull request #6062 from BlueWallet/success

fix: add SaveArea to Send/Success screen
This commit is contained in:
GLaDOS 2024-01-28 23:08:23 +00:00 committed by GitHub
commit a7a13a7d9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
import React, { useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import LottieView from 'lottie-react-native';
import { View, StyleSheet, SafeAreaView } from 'react-native';
import { View, StyleSheet } from 'react-native';
import { Text } from 'react-native-elements';
import BigNumber from 'bignumber.js';
import { useNavigation, useRoute } from '@react-navigation/native';
@ -11,6 +11,7 @@ import { BitcoinUnit } from '../../models/bitcoinUnits';
import loc from '../../loc';
import { useTheme } from '../../components/themes';
import Button from '../../components/Button';
import SafeArea from '../../components/SafeArea';
const Success = () => {
const pop = () => {
@ -35,7 +36,7 @@ const Success = () => {
}, []);
return (
<SafeAreaView style={[styles.root, stylesHook.root]}>
<SafeArea style={[styles.root, stylesHook.root]}>
<SuccessView
amount={amount}
amountUnit={amountUnit}
@ -46,7 +47,7 @@ const Success = () => {
<View style={styles.buttonContainer}>
<Button onPress={onDonePressed} title={loc.send.success_done} />
</View>
</SafeAreaView>
</SafeArea>
);
};