import React, {FunctionComponent} from 'react'; import {StyleSheet, View, ViewStyle} from 'react-native'; interface Props { size: number; color: string; axis?: 'horizontal' | 'vertical'; style?: ViewStyle; width?: number; } const DashedLine: FunctionComponent = ({ size, color, axis = 'horizontal', style = {}, width = 2, }) => { const _style = {...style}; if (axis === 'vertical') { _style.transform = [{rotate: '90deg'}]; } return ( ); }; const styles = StyleSheet.create({ container: { overflow: 'hidden', }, innerContainer: { borderStyle: 'dashed', margin: -2, marginTop: 10, }, }); export default DashedLine;