import React from 'react'; import {View, StyleSheet, Text} from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome5'; export default function DriveStatus({distance,onPress}) { //남은 키로수 return ( {distance}km ); } const styles = StyleSheet.create({ driveStatus: { paddingVertical: 20, paddingHorizontal:16, borderTopColor: '#cccccc', borderTopWidth: 2, backgroundColor: '#ffffff', flexDirection: 'row', justifyContent: 'space-between', }, driveStatusText: { fontSize: 20, fontWeight: 'bold', }, driveStatusTextBox: { flex:30, }, driveStatusIcon: { flex: 1, paddingLeft: 15, }, });