UNPKG

@livelike/react-native

Version:

LiveLike React Native package

45 lines (44 loc) 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LLCheerMeterWidgetCheerCount = LLCheerMeterWidgetCheerCount; var _react = _interopRequireDefault(require("react")); var _reactNative = require("react-native"); var _hooks = require("../../hooks"); var _LLText = require("../LLText"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function LLCheerMeterWidgetCheerCount(_ref) { let { totalCheerCount, styles: stylesProp } = _ref; const styles = (0, _hooks.useStyles)({ componentStylesFn: getCheerMeterWidgetTotalCountStyles, stylesProp }); return /*#__PURE__*/_react.default.createElement(_reactNative.View, { style: styles.cheerCountContainer }, /*#__PURE__*/_react.default.createElement(_LLText.LLText, { style: styles.cheerCountText }, totalCheerCount)); } const getCheerMeterWidgetTotalCountStyles = _ref2 => { let { theme } = _ref2; return _reactNative.StyleSheet.create({ cheerCountContainer: { position: 'absolute', left: '45%', height: '100%', justifyContent: 'center', alignItems: 'center' }, cheerCountText: { fontSize: 18, color: theme.text } }); }; //# sourceMappingURL=LLCheerMeterWidgetCheerCount.js.map