diff --git a/src/__tests__/components/__snapshots__/TransactionListRow.test.tsx.snap b/src/__tests__/components/__snapshots__/TransactionListRow.test.tsx.snap index 7a63637226a..aa9d6a37587 100644 --- a/src/__tests__/components/__snapshots__/TransactionListRow.test.tsx.snap +++ b/src/__tests__/components/__snapshots__/TransactionListRow.test.tsx.snap @@ -87,8 +87,16 @@ exports[`TransactionListRow should render with loading props 1`] = ` { "alignItems": "center", "borderRadius": 28, + "elevation": 0, "height": 45, "justifyContent": "center", + "shadowColor": "#000000", + "shadowOffset": { + "height": 3, + "width": -3, + }, + "shadowOpacity": 0.6, + "shadowRadius": 4, "width": 45, }, ] diff --git a/src/components/themed/TransactionListRow.tsx b/src/components/themed/TransactionListRow.tsx index 4568e776639..fc5d0b1f16c 100644 --- a/src/components/themed/TransactionListRow.tsx +++ b/src/components/themed/TransactionListRow.tsx @@ -3,6 +3,7 @@ import { EdgeCurrencyWallet, EdgeTransaction } from 'edge-core-js' import * as React from 'react' import { StyleProp, View, ViewStyle } from 'react-native' import FastImage from 'react-native-fast-image' +import { ShadowedView } from 'react-native-fast-shadow' import Share from 'react-native-share' import Ionicons from 'react-native-vector-icons/Ionicons' import { sprintf } from 'sprintf-js' @@ -129,16 +130,16 @@ export function TransactionListRow(props: Props) { } const arrowIcon = ( - + - + ) const icon = thumbnailPath ? ( - + {arrowIcon} - + ) : ( arrowIcon ) @@ -226,7 +227,8 @@ const getStyles = cacheStyles((theme: Theme) => ({ alignItems: 'center', width: theme.rem(2), height: theme.rem(2), - borderRadius: theme.rem(1.25) + borderRadius: theme.rem(1.25), + ...theme.iconShadow }, contactImage: { position: 'absolute', @@ -249,7 +251,8 @@ const getStyles = cacheStyles((theme: Theme) => ({ alignItems: 'center', width: theme.rem(2), height: theme.rem(2), - borderRadius: theme.rem(1.25) + borderRadius: theme.rem(1.25), + ...theme.iconShadow }, // Pad the containers to account for vector icons having an off-center origin arrowIconContainerSend: {