stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
44 lines • 1.82 kB
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Loading = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactNativeSvg = require("react-native-svg");
var _base = require("./utils/base");
var _jsxRuntime = require("react/jsx-runtime");
var _jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/icons/loading.tsx";
var Loading = props => {
var _props$height = props.height,
height = _props$height === void 0 ? 16 : _props$height,
startColor = props.startColor,
stopColor = props.stopColor,
_props$stopOpacity = props.stopOpacity,
stopOpacity = _props$stopOpacity === void 0 ? 0.3 : _props$stopOpacity,
_props$viewBox = props.viewBox,
viewBox = _props$viewBox === void 0 ? '0 0 20 20' : _props$viewBox,
_props$width = props.width,
width = _props$width === void 0 ? 16 : _props$width;
var baseColor = startColor ?? stopColor ?? '#006CFF';
var accentColor = stopColor ?? startColor ?? '#006CFF';
return (0, _jsxRuntime.jsxs)(_base.RootSvg, {
fill: "none",
height: height,
viewBox: viewBox,
width: width,
...props,
children: [(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
d: "M17.5 10C17.5 14.1422 14.1422 17.5 10 17.5C5.85787 17.5 2.5 14.1422 2.5 10C2.5 5.85787 5.85787 2.5 10 2.5C14.1422 2.5 17.5 5.85787 17.5 10Z",
stroke: baseColor,
strokeOpacity: stopOpacity,
strokeWidth: 2
}), (0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
d: "M17.4544 10.8334C17.0701 14.3097 14.3098 17.07 10.8335 17.4543",
stroke: accentColor,
strokeLinecap: "round",
strokeWidth: 2
})]
});
};
exports.Loading = Loading;
//# sourceMappingURL=loading.js.map