@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
39 lines (38 loc) • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _index = require("../StyledComponents/index.js");
var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
var _jsxRuntime = require("react/jsx-runtime");
const AvatarImage = ({
size = 70,
source,
resizeMode = 'cover',
containerStyle,
imageStyle
}) => {
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView
// alignSelf='flex-start'
, {
height: (0, _ResponsiveCalculations.verticalScale)(size),
width: (0, _ResponsiveCalculations.verticalScale)(size),
borderRadius: (0, _ResponsiveCalculations.verticalScale)(size),
overflow: "hidden",
style: containerStyle,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
source: source,
style: [{
height: '100%',
width: '100%'
}, imageStyle],
resizeMode: resizeMode
})
})
});
};
var _default = exports.default = AvatarImage;
//# sourceMappingURL=AvatarImage.js.map