import React, { type ReactNode } from 'react'; import type { TouchableOpacityProps } from 'react-native'; import { type FlexAlignType, type StyleProp, StyleSheet, TouchableOpacity, View, type ViewStyle, } from 'react-native'; type Props = { children: ReactNode; flex?: number; justifyContent?: | 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | undefined; wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | undefined; alignItems?: FlexAlignType; styles?: StyleProp; onPress?: () => void; touchableProps?: TouchableOpacityProps; }; const Row = (props: Props) => { const { children, justifyContent, flex, wrap, alignItems, styles, onPress, touchableProps, } = props; return onPress ? ( {children} ) : ( {children} ); }; export default Row; const localStyles = StyleSheet.create({ container: { flexDirection: 'row', flex: 1, alignItems: 'center', }, });