From 666e6edf5778d3182bc0b53325277385802b94b1 Mon Sep 17 00:00:00 2001 From: tapframe Date: Wed, 18 Jun 2025 11:31:30 +0530 Subject: [PATCH] Enhance HeroSection with platform-specific blur effects and improved button styles This update introduces platform-specific blur effects in the HeroSection component, utilizing ExpoBlurView for iOS and CommunityBlurView for Android, along with a fallback for StoreClient environments. Additionally, button styles have been refined with overflow properties for better visual consistency. New styles for blur backgrounds have been added to enhance the overall aesthetic of the action buttons. --- src/components/metadata/HeroSection.tsx | 72 ++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/src/components/metadata/HeroSection.tsx b/src/components/metadata/HeroSection.tsx index 2575618..457d56f 100644 --- a/src/components/metadata/HeroSection.tsx +++ b/src/components/metadata/HeroSection.tsx @@ -5,10 +5,14 @@ import { StyleSheet, Dimensions, TouchableOpacity, + Platform, } from 'react-native'; import { MaterialIcons } from '@expo/vector-icons'; import { LinearGradient } from 'expo-linear-gradient'; import { Image } from 'expo-image'; +import { BlurView as ExpoBlurView } from 'expo-blur'; +import { BlurView as CommunityBlurView } from '@react-native-community/blur'; +import Constants, { ExecutionEnvironment } from 'expo-constants'; import Animated, { useAnimatedStyle, interpolate, @@ -135,6 +139,21 @@ const ActionButtons = React.memo(({ onPress={toggleLibrary} activeOpacity={0.85} > + {Platform.OS === 'ios' ? ( + + ) : ( + Constants.executionEnvironment === ExecutionEnvironment.StoreClient ? ( + + ) : ( + + ) + )} + {Platform.OS === 'ios' ? ( + + ) : ( + Constants.executionEnvironment === ExecutionEnvironment.StoreClient ? ( + + ) : ( + + ) + )}