import { View, Text, StyleSheet, Image, ScrollView } from 'react-native'; import TabViewComponent, { TabItem } from '../global/tabView'; import NormalButton from '../global/normal_button'; interface BookingMenuPageProps {} const dummyTabItems: TabItem[] = [ { imgURL: require('../../assets/dummyStationPicture.png'), date: '今天', time: '16:30', chargeStationName: '上環街市充電站', chargeStationAddress: '香港上環皇后大道中345號', distance: '400米' }, { imgURL: require('../../assets/dummyStationPicture2.png'), date: '3月15', time: '17:45', chargeStationName: '中環IFC充電站', chargeStationAddress: '香港中環皇后大道中999號', distance: '680米' }, { imgURL: require('../../assets/dummyStationPicture2.png'), date: '4月20', time: '12:30', chargeStationName: '中環IFC充電站', chargeStationAddress: '香港中環皇后大道中999號', distance: '680米' } ]; const BookingMenuPage: React.FC = () => { return ( 預約 + 新增預約 } onPress={() => console.log('abc')} /> 近期預約過 充電站#1 充電站地址#1 重新預約 } onPress={() => console.log('abc')} buttonPressedStyle={{ backgroundColor: '#CFDEE4' }} extendedStyle={{ backgroundColor: '#E3F2F8', paddingHorizontal: 25, paddingVertical: 1, borderRadius: 8 }} /> 充電站#2 充電站地址#2 重新預約 } onPress={() => console.log('abc')} buttonPressedStyle={{ backgroundColor: '#CFDEE4' }} extendedStyle={{ backgroundColor: '#E3F2F8', paddingHorizontal: 25, paddingVertical: 1, borderRadius: 8 }} /> 充電站#3 充電站地址#3 重新預約 } onPress={() => console.log('abc')} buttonPressedStyle={{ backgroundColor: '#CFDEE4' }} extendedStyle={{ backgroundColor: '#E3F2F8', paddingHorizontal: 25, paddingVertical: 1, borderRadius: 8 }} /> 充電站#4 充電站地址#4 重新預約 } onPress={() => console.log('abc')} buttonPressedStyle={{ backgroundColor: '#CFDEE4' }} extendedStyle={{ backgroundColor: '#E3F2F8', paddingHorizontal: 25, paddingVertical: 1, borderRadius: 8 }} /> ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: 'white' }, topContainer: { flex: 1, gap: 20, marginTop: 25, marginHorizontal: '5%' }, recentBookingMainContainer: { flex: 1 }, recentBookingRowContainer: { flexDirection: 'row', alignItems: 'center' }, tabViewContainer: { flex: 1 } }); export default BookingMenuPage;