react-native-nepali-picker
Version:
Minimalist and modern Nepali-date picker with customization.🌟
37 lines (36 loc) • 878 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _jsxRuntime = require("react/jsx-runtime");
const Triangle = ({
width = 10,
height = 20,
color = 'black'
}) => {
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
style: [styles.triangle, {
borderLeftWidth: width / 2,
borderRightWidth: width / 2,
borderBottomWidth: height,
borderBottomColor: color
}]
});
};
const styles = _reactNative.StyleSheet.create({
triangle: {
width: 0,
height: 0,
transform: [{
rotate: '180deg'
}],
backgroundColor: 'transparent',
borderStyle: 'solid',
borderLeftColor: 'transparent',
borderRightColor: 'transparent'
}
});
var _default = exports.default = Triangle;
//# sourceMappingURL=Triangle.js.map