UNPKG

react-native-animated-pagination-dot

Version:
40 lines (32 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.defaultEmptyDotSize = void 0; var _react = _interopRequireDefault(require("react")); var _reactNative = require("react-native"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Created by rouge on 11/09/2019. * Converted to Functional component. on 21/09/2021 */ const defaultEmptyDotSize = 3; exports.defaultEmptyDotSize = defaultEmptyDotSize; const EmptyDot = props => { return /*#__PURE__*/_react.default.createElement(_reactNative.View, { style: [styles.base, { width: defaultEmptyDotSize * props.sizeRatio, height: defaultEmptyDotSize * props.sizeRatio, margin: defaultEmptyDotSize * props.sizeRatio }] }); }; const styles = _reactNative.StyleSheet.create({ base: { backgroundColor: 'white', opacity: 0.0 } }); var _default = EmptyDot; exports.default = _default; //# sourceMappingURL=EmptyDot.js.map