import { View, Text, ScrollView, Pressable, StyleSheet, Image, useWindowDimensions } from 'react-native'; import React from 'react'; import { SafeAreaView } from 'react-native-safe-area-context'; import Svg, { Path, Rect } from 'react-native-svg'; import { router } from 'expo-router'; import NormalButton from '../global/normal_button'; import { SceneMap, TabBar, TabView } from 'react-native-tab-view'; interface ChargingStationTabViewProps { titles: string[]; } const ChargingStationTabView: React.FC = ({ titles }) => { const layout = useWindowDimensions(); //tab 1 const FirstRoute = () => ( 這是一段有關充電站的說明 ); //tab 2 const SecondRoute = () => ( Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ); const renderScene = SceneMap({ firstRoute: FirstRoute, secondRoute: SecondRoute }); const [routes] = React.useState([ { key: 'firstRoute', title: titles[0] }, { key: 'secondRoute', title: titles[1] } ]); const [index, setIndex] = React.useState(0); const renderTabBar = (props: any) => ( ( {route.title} )} indicatorStyle={{ backgroundColor: '#000000', height: 1 }} style={{ backgroundColor: 'white', elevation: 0, marginHorizontal: 15, borderBottomWidth: 0.5 }} /> ); return ( ); }; const PreviousPageSvg = () => ( ); const CheckLogoSvg = () => ( ); const DirectionLogoSvg = () => ( ); const StarSvg = () => ( ); const MakingBookingPage = () => ( { if (router.canGoBack()) { router.back(); } else { router.replace('./'); } }} > 上環街市充電站 香港上環皇后大道中345號 路線 } onPress={() => console.log('abc')} extendedStyle={{ backgroundColor: '#E3F2F8', borderRadius: 61, paddingHorizontal: 20, paddingVertical: 8 }} /> Walk-In 400米 選擇充電車輛 TESLA - Model 3 TESLA - Model 3 TESLA - Model 3 TESLA - Model 3 TESLA - Model 3 console.log('選擇充電方案')} > 選擇充電方案 console.log('選擇日期時間')} > 選擇日期時間 console.log('選擇充電座')} > 選擇充電座 收費 $20 每15分鐘 $3.5 每度電 充電站資訊 ); export default MakingBookingPage; const styles = StyleSheet.create({ grayColor: { color: '#888888' }, topLeftTriangle: { width: 0, height: 0, borderLeftWidth: 50, borderBottomWidth: 50, borderLeftColor: '#02677D', borderBottomColor: 'transparent', position: 'absolute', top: 0, left: 0 }, text: { fontWeight: 300, color: '#000000' } });