import { ScrollView, Text, View, StyleSheet, Pressable } from 'react-native';
import NormalInput from '../global/normal_input';
import Svg, { Path } from 'react-native-svg';
import NormalButton from '../global/normal_button';
import { FlashList } from '@shopify/flash-list';
interface BookingHistory {
charingStationName: string;
chargingStationAddress: string;
}
interface SearchPageProps {}
const ArrowIconSvg = () => (
);
const bookingHistoryData: BookingHistory[] = [
{
charingStationName: '充電站#1',
chargingStationAddress: '充電站地址#1'
},
{
charingStationName: '充電站#2',
chargingStationAddress: '充電站地址#2'
},
{
charingStationName: '充電站#3',
chargingStationAddress: '充電站地址#3'
},
{
charingStationName: '充電站#4',
chargingStationAddress: '充電站地址#4'
}
];
const SearchPage: React.FC = () => {
return (
console.log('Back Button')}
>
console.log(abc)}
extendedStyle={styles.textInput}
/>
附近的充電站
}
onPress={() => console.log('附近的充電站')}
buttonPressedStyle={{
backgroundColor: '#CFDEE4'
}}
extendedStyle={{
backgroundColor: '#E3F2F8',
borderRadius: 8,
paddingVertical: 12
}}
/>
可Walk-in的充電站
}
onPress={() => console.log('可Walk-in的充電站')}
buttonPressedStyle={{
backgroundColor: '#CFDEE4'
}}
extendedStyle={{
backgroundColor: '#E3F2F8',
borderRadius: 8,
paddingVertical: 12
}}
/>
Test Tab #1
}
onPress={() => console.log('Test Tab #1')}
buttonPressedStyle={{
backgroundColor: '#CFDEE4'
}}
extendedStyle={{
backgroundColor: '#E3F2F8',
borderRadius: 8,
paddingVertical: 12
}}
/>
Test Tab #2
}
onPress={() => console.log('Test Tab #2')}
buttonPressedStyle={{
backgroundColor: '#CFDEE4'
}}
extendedStyle={{
backgroundColor: '#E3F2F8',
borderRadius: 8,
paddingVertical: 12
}}
/>
預約記錄
(
{item.charingStationName}
{item.chargingStationAddress}
)}
/>
);
};
export default SearchPage;
const styles = StyleSheet.create({
leftArrowBackButton: {
width: '15%',
maxWidth: '100%',
fontSize: 16,
padding: 20,
paddingLeft: 30,
borderBottomLeftRadius: 12,
borderTopLeftRadius: 12,
borderColor: '#bbbbbb',
borderTopWidth: 1,
borderBottomWidth: 1,
borderLeftWidth: 1,
alignItems: 'center',
justifyContent: 'center'
},
textInput: {
width: '85%',
maxWidth: '100%',
fontSize: 16,
padding: 20,
paddingLeft: 0,
borderLeftWidth: 0,
borderTopWidth: 1,
borderBottomWidth: 1,
borderRightWidth: 1,
borderBottomRightRadius: 12,
borderTopRightRadius: 12,
borderRadius: 0,
borderColor: '#bbbbbb'
}
});