1import { Text, Row } from 'expo-dev-client-components'; 2import * as React from 'react'; 3import { TouchableOpacity } from 'react-native-gesture-handler'; 4 5type Props = { 6 title: string; 7 value: string; 8 onPress?: () => void; 9}; 10 11export function ConstantItem({ title, value, onPress }: Props) { 12 return ( 13 <TouchableOpacity disabled={!onPress} onPress={onPress}> 14 <Row justify="between" align="center" padding="medium"> 15 <Text type="InterRegular">{title}</Text> 16 <Text type="InterRegular">{value}</Text> 17 </Row> 18 </TouchableOpacity> 19 ); 20} 21