Tones/components/Row.tsx

24 lines
463 B
TypeScript
Raw Normal View History

2024-08-30 02:04:58 +00:00
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>
)
};