import { type StyleProp, StyleSheet, View, type ViewStyle } from "react-native"; import { colors } from "./colors"; interface LinesProps { numLines: number; containerHeight: number; lineHeight: number; lineStyle?: StyleProp; containerStyle?: StyleProp; renderTopLine?: boolean; } export default function Lines(props: LinesProps) { const { containerHeight, containerStyle, numLines, lineHeight, lineStyle, renderTopLine = true } = props; const arr = new Array(numLines).fill(0); return ( {arr.map((_, idx) => ( ))} ); } const styles = StyleSheet.create({ line: { borderBottomWidth: 2, borderBottomColor: colors.grey }, firstLine: { borderTopWidth: 2, borderTopColor: colors.grey }, });