Rollback-Punkt vor Expo SDK 54 / RN 0.81 Upgrade. UI/UX: - Profile: ProfileHeader redesign (sign-in chip + member-since), StatsBar 3 pill cards, Demographics accordion completed (Geburtsjahr, Geschlecht, Familienstand, Beruf-split, Wohnort), Pro-Trial-Banner, Approved-Domains list, DigaMissionBanner - Settings: section-based layout, neutral icons (matched Header dropdown style) - Header dropdown: extended with logout + games-page link - Notifications page: skeleton dummy data - Locales: i18n keys for new screens New components: - WheelPickerModal: native iOS UIPickerView wheel for long lists (Geburtsjahr 91 items, Bundesland 16, Stadt 30+/Bundesland) - OptionsBottomSheet: iOS-style options sheet (used briefly for Geschlecht, currently unused — kept for potential future use) - germanCities.ts: Top-cities per Bundesland (DSGVO-clean static data) New libs (NewArch-codegen verified): - @react-native-menu/menu 2.0.0 (UIMenu wrapper, Apple HIG-konform) - @lodev09/react-native-true-sheet 3.10.1 (UISheetPresentationController wrapper — ABER incompatible mit RN 0.79.6, Build-Error → Trigger für SDK-54-Upgrade) Maestro E2E: - Initial setup mit auth/community/profile/urge flows Scripts: - build-ios-clean.sh: Xcode DerivedData + ios/build cleanup vor expo run:ios Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
120 lines
3.3 KiB
TypeScript
120 lines
3.3 KiB
TypeScript
import { View, Text, Pressable } from 'react-native';
|
|
import { Ionicons } from '@expo/vector-icons';
|
|
import { colors } from '../../lib/theme';
|
|
|
|
type Props = {
|
|
onDismiss?: () => void;
|
|
onContribute?: () => void;
|
|
};
|
|
|
|
export function DigaMissionBanner({ onDismiss, onContribute }: Props) {
|
|
return (
|
|
<View
|
|
style={{
|
|
marginHorizontal: 16,
|
|
marginTop: 16,
|
|
backgroundColor: '#fffbeb',
|
|
borderWidth: 1,
|
|
borderColor: '#fde68a',
|
|
borderRadius: 14,
|
|
padding: 16,
|
|
}}
|
|
>
|
|
<View style={{ flexDirection: 'row', alignItems: 'flex-start', gap: 10 }}>
|
|
<View
|
|
style={{
|
|
width: 28,
|
|
height: 28,
|
|
borderRadius: 14,
|
|
backgroundColor: '#fef3c7',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
marginTop: 2,
|
|
}}
|
|
>
|
|
<Ionicons name="medkit-outline" size={14} color="#854d0e" />
|
|
</View>
|
|
<View style={{ flex: 1 }}>
|
|
<Text
|
|
style={{
|
|
fontSize: 13,
|
|
color: '#854d0e',
|
|
fontFamily: 'Nunito_700Bold',
|
|
}}
|
|
>
|
|
30 Tage geschützt — danke
|
|
</Text>
|
|
<Text
|
|
style={{
|
|
marginTop: 4,
|
|
fontSize: 12,
|
|
color: '#92400e',
|
|
fontFamily: 'Nunito_400Regular',
|
|
lineHeight: 17,
|
|
}}
|
|
>
|
|
Rebreak strebt die Anerkennung als DiGA an. Mit ein paar anonymen
|
|
Angaben hilfst du, die Wirksamkeit zu belegen — damit Krankenkassen
|
|
die App künftig erstatten können.
|
|
</Text>
|
|
|
|
<View style={{ flexDirection: 'row', gap: 8, marginTop: 12 }}>
|
|
<Pressable
|
|
onPress={onContribute}
|
|
style={({ pressed }) => ({
|
|
opacity: pressed ? 0.7 : 1,
|
|
})}
|
|
>
|
|
<View style={{
|
|
paddingHorizontal: 12,
|
|
paddingVertical: 7,
|
|
backgroundColor: '#854d0e',
|
|
borderRadius: 8,
|
|
}}>
|
|
<Text
|
|
style={{
|
|
fontSize: 12,
|
|
color: '#ffffff',
|
|
fontFamily: 'Nunito_600SemiBold',
|
|
}}
|
|
>
|
|
Beitragen
|
|
</Text>
|
|
</View>
|
|
</Pressable>
|
|
<Pressable
|
|
onPress={onDismiss}
|
|
style={({ pressed }) => ({
|
|
opacity: pressed ? 0.7 : 1,
|
|
})}
|
|
>
|
|
<View style={{
|
|
paddingHorizontal: 12,
|
|
paddingVertical: 7,
|
|
borderRadius: 8,
|
|
}}>
|
|
<Text
|
|
style={{
|
|
fontSize: 12,
|
|
color: '#92400e',
|
|
fontFamily: 'Nunito_600SemiBold',
|
|
}}
|
|
>
|
|
Später
|
|
</Text>
|
|
</View>
|
|
</Pressable>
|
|
</View>
|
|
</View>
|
|
<Pressable
|
|
onPress={onDismiss}
|
|
hitSlop={8}
|
|
style={({ pressed }) => ({ opacity: pressed ? 0.5 : 1 })}
|
|
>
|
|
<Ionicons name="close" size={16} color={colors.textMuted} />
|
|
</Pressable>
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|