First commit of the new app

This commit is contained in:
2026-05-26 09:18:37 +01:00
parent 295d1bda21
commit b427fb0f85
110 changed files with 6483 additions and 833 deletions

View File

@@ -0,0 +1,20 @@
import { colors } from '@/assets/styles/colors';
import styles from '@/styles/screens/reserva/detail.styles';
import { FontAwesome } from '@expo/vector-icons';
import { View } from 'react-native';
type Props = {
stars: string | number;
};
export function Stars({ stars }: Props) {
const count = Math.max(0, Math.min(5, parseInt(String(stars || '0'), 10)));
if (!count) return null;
return (
<View style={styles.hotelStarsRow}>
{Array.from({ length: count }).map((_, i) => (
<FontAwesome key={`star-${i}`} name="star" size={16} color={colors.stars} />
))}
</View>
);
}