← back to Beverlyhillsvideos App
app/(tabs)/index.tsx
36 lines
import React, { useCallback } from 'react';
import { Share, TouchableOpacity, Text, StyleSheet, Platform } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import BHVWebView from '@/components/BHVWebView';
import { Colors } from '@/constants/Colors';
export default function HomeScreen() {
const handleShare = useCallback(async () => {
try {
await Share.share({
title: 'Beverly Hills Videos',
message: 'Discover the best of Beverly Hills dining, shopping & culture — https://beverlyhillsvideos.com',
url: 'https://beverlyhillsvideos.com',
});
} catch {
// user dismissed
}
}, []);
return (
<SafeAreaView style={styles.container} edges={['top']}>
<BHVWebView
initialUrl="https://beverlyhillsvideos.com/"
shareTitle="Beverly Hills Videos"
/>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: Colors.cream,
},
});