- ChatBubble: useActionSheet replaces custom Modal (native iOS popup, Android bottom sheet) - DM mode (isDM prop): hides like-count, shows Insta-style heart badge under bubble when liked - Group chat unchanged - Cleanup: remove unused Modal/Platform imports, sheet styles, actionsOpen state - deploy.sh: auto-detect ANDROID_HOME + auto-create local.properties for local Gradle - NEXT_RELEASE.md: DM reactions release note - Includes other staged work across binder-mac, marketing, ops/mdm, ios/
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
import { ScrollView, View } from 'react-native';
|
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useColors } from '../../lib/theme';
|
|
import { AppHeader } from '../../components/AppHeader';
|
|
import { FaqAccordion, type FaqItem } from '../../components/FaqAccordion';
|
|
|
|
export default function FaqScreen() {
|
|
const { t } = useTranslation();
|
|
const colors = useColors();
|
|
const insets = useSafeAreaInsets();
|
|
|
|
const items: FaqItem[] = [
|
|
{ q: t('help.faq_q1'), a: t('help.faq_a1') },
|
|
{ q: t('help.faq_q2'), a: t('help.faq_a2') },
|
|
{ q: t('help.faq_q3'), a: t('help.faq_a3') },
|
|
{ q: t('help.faq_q4'), a: t('help.faq_a4') },
|
|
{ q: t('help.faq_q5'), a: t('help.faq_a5') },
|
|
{ q: t('help.faq_q6'), a: t('help.faq_a6') },
|
|
{ q: t('help.faq_q7'), a: t('help.faq_a7') },
|
|
{ q: t('help.faq_q8'), a: t('help.faq_a8') },
|
|
{ q: t('help.faq_q9'), a: t('help.faq_a9') },
|
|
{ q: t('help.faq_q10'), a: t('help.faq_a10') },
|
|
{ q: t('help.faq_q11'), a: t('help.faq_a11') },
|
|
{ q: t('help.faq_q12'), a: t('help.faq_a12') },
|
|
{ q: t('help.faq_q13'), a: t('help.faq_a13') },
|
|
];
|
|
|
|
return (
|
|
<View style={{ flex: 1, backgroundColor: colors.groupedBg }}>
|
|
<AppHeader showBack title={t('help.faq_title')} />
|
|
|
|
<ScrollView
|
|
style={{ flex: 1 }}
|
|
contentContainerStyle={{
|
|
paddingHorizontal: 16,
|
|
paddingTop: 20,
|
|
paddingBottom: insets.bottom + 40,
|
|
}}
|
|
showsVerticalScrollIndicator={false}
|
|
>
|
|
<FaqAccordion items={items} />
|
|
</ScrollView>
|
|
</View>
|
|
);
|
|
}
|