Skip to content

Commit

Permalink
fix: android shadows not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Oct 11, 2023
1 parent c8eb74c commit 959626a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/screens/rewards/components/RewardsSectionCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { PropsWithChildren } from 'react';
import { View } from 'react-native';
import { Box, Space, globalColors } from '@/design-system';
import { Box, Space, globalColors, useBackgroundColor } from '@/design-system';
import { IS_ANDROID, IS_IOS } from '@/env';
import { useTheme } from '@/theme';

Expand All @@ -16,6 +16,8 @@ export function RewardsSectionCard({
}: PropsWithChildren<Props>) {
const { isDarkMode } = useTheme();

const bg = useBackgroundColor('surfaceSecondaryElevated');

return (
<View
style={
Expand All @@ -42,6 +44,8 @@ export function RewardsSectionCard({
shadowColor: globalColors.grey100,
elevation: 8,
shadowOpacity: isDarkMode ? 1 : 0.55,
backgroundColor: bg,
borderRadius: 18,
}
}
>
Expand Down

0 comments on commit 959626a

Please sign in to comment.