import * as React from 'react'; import { StyleSheet, Text, Image, Alert, Pressable, View, ImageProps, } from 'react-native'; import { FC } from 'react'; type IEvent = { type: string; iconOne: ImageProps; iconTwo: ImageProps; scoreOne: number; scoreTwo: number; commandOne: string; commandTwo: string; }; const Event: FC = ({ type, iconOne, iconTwo, scoreOne, scoreTwo, commandOne, commandTwo, }) => ( Alert.alert('Click', commandOne)} > {commandOne} {scoreOne} {'vs'} {'-'} {commandTwo} {scoreTwo} {type} ); export { Event }; const styles = StyleSheet.create({ sport: { flexDirection: 'row', paddingStart: 12, backgroundColor: '#2B2B3D', borderRadius: 8, }, icons: { flex: 0.2, flexDirection: 'row', alignItems: 'center', height: 80, }, teams: { flex: 0.7, flexDirection: 'row', paddingHorizontal: 6, justifyContent: 'space-between', }, type: { flex: 0.1, alignItems: 'center', justifyContent: 'center', backgroundColor: '#222232', }, team: { fontSize: 18, color: '#FFFFFF', }, score: { fontSize: 18, color: '#FFFFFF', }, typeItem: { fontSize: 18, color: '#FFFFFF', }, sportIcon: { height: 30, width: 30, alignSelf: 'center', }, shape: { height: 38, width: 38, backgroundColor: '#222232', borderRadius: 32 / 2, alignSelf: 'center', justifyContent: 'center', }, symbol: { fontSize: 18, color: '#FFFFFF', textAlign: 'center', alignSelf: 'center', }, contentTeam: { flex: 0.5, justifyContent: 'center', alignItems: 'center', }, contentVs: { justifyContent: 'center', }, });