Add HotelBusinessCardModal and LostKeyModal to ServicesScreen; update localization for 'Lost room key'

This commit is contained in:
2025-08-21 17:57:35 +05:00
parent dc76633cb1
commit e1d9b688d9
4 changed files with 149 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
import React from 'react';
import { Modal, View, Text, StyleSheet, TouchableOpacity, Dimensions } from 'react-native';
const { width, height } = Dimensions.get('window');
interface LostKeyModalProps {
visible: boolean;
onClose: () => void;
}
const LostKeyModal: React.FC<LostKeyModalProps> = ({ visible, onClose }) => {
return (
<Modal
animationType="fade"
transparent={true}
visible={visible}
onRequestClose={onClose}
>
<TouchableOpacity style={styles.overlay} activeOpacity={1} onPress={onClose}>
<View style={styles.modalContainer}>
<Text style={styles.text}>Mastercard</Text>
<Text style={[styles.text, styles.arabicText]}>ماستركارد</Text>
</View>
</TouchableOpacity>
</Modal>
);
};
const styles = StyleSheet.create({
overlay: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'rgba(0, 0, 0, 0.5)',
},
modalContainer: {
width: width * 0.6,
padding: 20,
backgroundColor: 'white',
borderRadius: 10,
alignItems: 'center',
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 3.84,
elevation: 5,
},
text: {
fontSize: 40,
marginBottom: 10,
},
arabicText: {
fontFamily: 'System',
writingDirection: 'rtl',
}
});
export default LostKeyModal;