UNPKG

@aashu-dubey/react-native-rating-bar

Version:

A React Native component for generating and displaying interactive Tap or Swipe enabled Ratings.

21 lines (20 loc) 628 B
"use strict"; import React from 'react'; import { View } from 'react-native'; import { getClonedElement } from "../helper/cloneElement.js"; import { elementStyle } from "../theme/styles.js"; import { jsx as _jsx } from "react/jsx-runtime"; const NoRatingElement = ({ size, children, enableMask, unratedColor }) => { const cloneChild = enableMask ? getClonedElement(children, size, unratedColor) : children; return /*#__PURE__*/_jsx(View, { style: elementStyle(size).container, children: cloneChild }); }; export default /*#__PURE__*/React.memo(NoRatingElement); //# sourceMappingURL=NoRatingElement.js.map