FIX: Warnings

This commit is contained in:
Marcos Rodriguez Velez 2024-04-09 14:52:57 -04:00
parent 6b7887d3d7
commit 1856e79eaf
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7
3 changed files with 6 additions and 3 deletions

View file

@ -20,7 +20,10 @@ const _shareOpen = async (filePath: string, showShareDialog: boolean = false) =>
})
.catch(error => {
console.log(error);
// If user cancels sharing, we dont want to show an error. for some reason we get 'CANCELLED' string as error
if (error.message !== 'CANCELLED') {
presentAlert({ message: error.message });
}
})
.finally(() => {
RNFS.unlink(filePath);

View file

@ -131,7 +131,7 @@ ToolTipMenu.propTypes = {
onPressMenuItem: PropTypes.func.isRequired,
isMenuPrimaryAction: PropTypes.bool,
isButton: PropTypes.bool,
renderPreview: PropTypes.element,
renderPreview: PropTypes.func,
onPress: PropTypes.func,
previewValue: PropTypes.string,
disabled: PropTypes.bool,

View file

@ -227,7 +227,7 @@ export const WalletCarouselItem = ({ item, _, onPress, handleLongPress, isSelect
<Text
numberOfLines={1}
key={balance} // force component recreation on balance change. To fix right-to-left languages, like Farsi
ellipsizeMode='middle'
ellipsizeMode="middle"
style={[iStyles.balance, { color: colors.inverseForegroundColor }]}
>
{`${balance} `}