Update SendDetails.tsx

This commit is contained in:
Marcos Rodriguez Velez 2024-08-07 00:07:44 -04:00
parent 96099348ca
commit be52ff5025
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -882,7 +882,6 @@ const SendDetails = () => {
};
const handleRemoveRecipient = async () => {
const last = scrollIndex.current === addresses.length - 1;
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setAddresses(addrs => {
addrs.splice(scrollIndex.current, 1);
@ -892,7 +891,10 @@ const SendDetails = () => {
if (addresses.length === 0) return;
await sleep(200); // wait for animation
scrollView.current?.flashScrollIndicators();
if (last && Platform.OS === 'android') scrollView.current?.scrollToEnd(); // fix white screen on android
if (Platform.OS === 'android') {
scrollView.current?.scrollToEnd();
scrollView.current?.scrollToEnd(); // fix white screen on android
}
};
const handleCoinControl = async () => {