UNPKG

@ggmdev/react-native-rating-bar

Version:

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

18 lines 586 B
import React from 'react'; import { View } from 'react-native'; import { getClonedElement } from '../helper/cloneElement'; import { elementStyle } from '../theme/styles'; const NoRatingElement = _ref => { let { size, children, enableMask, unratedColor } = _ref; const cloneChild = enableMask ? getClonedElement(children, size, unratedColor) : children; return /*#__PURE__*/React.createElement(View, { style: elementStyle(size).container }, cloneChild); }; export default /*#__PURE__*/React.memo(NoRatingElement); //# sourceMappingURL=NoRatingElement.js.map