2026-07-01 09:55:55 +05:30

49 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from 'react';
import { View, Text, ScrollView, TouchableOpacity } from 'react-native';
import { getStyles } from './helpSupportScreen.styles';
import { Header } from '@components';
import { useAppTheme } from '@theme';
const FAQS = [
{ q: 'How do I track my order?', a: 'Go to Orders tab and tap on your active order to see tracking.' },
{ q: 'What is the delivery time?', a: 'Standard delivery takes 25-30 min, Express takes 10-15 min.' },
{ q: 'How do I cancel an order?', a: 'Contact support to cancel an order before it is dispatched.' },
{ q: 'What payment methods are accepted?', a: 'UPI, Credit/Debit Card, Wallet, and Cash on Delivery.' },
];
export const HelpSupportScreen: React.FC = () => {
const { colors } = useAppTheme();
const styles = getStyles(colors);
return (
<View style={styles.container}>
<Header title="Help & Support" />
<ScrollView contentContainerStyle={styles.content}>
<Text style={styles.sectionTitle}>Frequently Asked Questions</Text>
{FAQS.map((faq, index) => (
<View key={index} style={styles.faqItem}>
<Text style={styles.faqQuestion}>{faq.q}</Text>
<Text style={styles.faqAnswer}>{faq.a}</Text>
</View>
))}
<Text style={styles.sectionTitle}>Contact Support</Text>
<TouchableOpacity style={styles.supportCard} activeOpacity={0.7}>
<Text style={styles.supportIcon}>📞</Text>
<View>
<Text style={styles.supportLabel}>Call us</Text>
<Text style={styles.supportValue}>+91 1800 123 4567</Text>
</View>
</TouchableOpacity>
<TouchableOpacity style={styles.supportCard} activeOpacity={0.7}>
<Text style={styles.supportIcon}></Text>
<View>
<Text style={styles.supportLabel}>Email us</Text>
<Text style={styles.supportValue}>support@sgdelivery.com</Text>
</View>
</TouchableOpacity>
</ScrollView>
</View>
);
};