first version of the cruise lovers app, build 1.0.1, ready to be published on the app store

This commit is contained in:
2026-07-22 09:09:26 +01:00
parent 104566ded3
commit 4f5c5cc6d2
23 changed files with 1225 additions and 858 deletions

View File

@@ -1,8 +1,8 @@
import { useAuth } from '@/assets/contexts/useAuth';
import { getCachedContacts } from '@/assets/services/offlineStorage';
import PhoneIcon from '@/assets/icons/phone-solid.svg';
import { colors } from '@/assets/styles/colors';
import { fonts } from '@/assets/styles/fonts';
import { FontAwesome } from '@expo/vector-icons';
import { useEffect, useState } from 'react';
import { Alert, Linking, Platform, StyleSheet, Text, useWindowDimensions } from 'react-native';
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
@@ -27,7 +27,7 @@ export function EmergencyButton() {
const tabBarHeight = (Platform.OS === 'ios' ? 54 : 64) + insets.bottom;
const maxX = screenWidth - BTN_SIZE - MARGIN;
const minY = insets.top + MARGIN;
const maxY = screenHeight - tabBarHeight - BTN_SIZE - MARGIN;
const maxY = screenHeight - tabBarHeight - BTN_SIZE + MARGIN;
const x = useSharedValue(screenWidth - BTN_SIZE - MARGIN);
const y = useSharedValue(screenHeight - tabBarHeight - BTN_SIZE - MARGIN);
@@ -49,7 +49,7 @@ export function EmergencyButton() {
if (!emergencyPhone) return;
const url = `tel:${emergencyPhone.replace(/\s/g, '')}`;
Alert.alert(
'Linha de Emergência 24h',
'Ajuda ao viajante 24h',
`Ligar para ${emergencyPhone}?`,
[
{ text: 'Cancelar', style: 'cancel' },
@@ -116,8 +116,8 @@ export function EmergencyButton() {
return (
<GestureDetector gesture={composed}>
<Animated.View style={[styles.btn, animatedStyle]}>
<FontAwesome name="phone" size={18} color={colors.branco} />
<Text style={styles.label}>SOS</Text>
<PhoneIcon width={18} height={18} fill={colors.branco} />
<Text style={styles.label}>Ajuda</Text>
</Animated.View>
</GestureDetector>
);