UNPKG

react-native-nepali-picker

Version:

Minimalist and modern Nepali-date picker with customization.🌟

33 lines (32 loc) • 733 B
"use strict"; import { View, StyleSheet } from 'react-native'; import { jsx as _jsx } from "react/jsx-runtime"; const Triangle = ({ width = 10, height = 20, color = 'black' }) => { return /*#__PURE__*/_jsx(View, { style: [styles.triangle, { borderLeftWidth: width / 2, borderRightWidth: width / 2, borderBottomWidth: height, borderBottomColor: color }] }); }; const styles = StyleSheet.create({ triangle: { width: 0, height: 0, transform: [{ rotate: '180deg' }], backgroundColor: 'transparent', borderStyle: 'solid', borderLeftColor: 'transparent', borderRightColor: 'transparent' } }); export default Triangle; //# sourceMappingURL=Triangle.js.map