otherInformationBox.tsx 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import { View, Text, StyleProp, ViewStyle } from 'react-native';
  2. import React from 'react';
  3. //this is a reuseable component "其他資訊" 灰色格仔 on Charging Page
  4. interface OtherInformationBoxProps {
  5. extendedStyle?: StyleProp<ViewStyle>;
  6. }
  7. const OtherInformationBox: React.FC<OtherInformationBoxProps> = ({
  8. extendedStyle
  9. }) => {
  10. return (
  11. <View
  12. className="border-slate-300 rounded-2xl justify-center pl-4"
  13. style={[{ borderWidth: 1 }, extendedStyle]}
  14. >
  15. <Text className="text-lg pb-2">其他資訊</Text>
  16. <View className="flex-row">
  17. <View className="flex-1 flex-column">
  18. <Text className="text-base color-[#888888]">開始時間</Text>
  19. <Text className="text-base">16:33:04</Text>
  20. </View>
  21. <View className="flex-1 flex-column">
  22. <Text className="text-base color-[#888888]">充電座</Text>
  23. <Text className="text-base">A104</Text>
  24. </View>
  25. </View>
  26. </View>
  27. );
  28. };
  29. export default OtherInformationBox;