Tones/components/Row.tsx
2024-08-29 22:04:58 -04:00

24 lines
No EOL
463 B
TypeScript

import { View, ViewStyle } from "react-native";
import { ReactNode } from "react";
interface RowProps {
children?: ReactNode | ReactNode[];
backgroundColor?: string;
style?: ViewStyle | ViewStyle[];
}
export const Row = ({
children,
backgroundColor,
style,
}: RowProps) => {
return (
<View style={[
{ flexDirection: 'row', alignItems: 'center' },
{ backgroundColor },
style
]}>
{children}
</View>
)
};