@rapido/components
Version:
Library of common primitive components used in Rapido apps.
25 lines (24 loc) • 1.14 kB
JavaScript
;
/**
* Copyright (c) 2019-present Verum Technologies
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("react");
var native_1 = __importDefault(require("styled-components/native"));
var styled_system_1 = require("styled-system");
var utils_1 = require("./utils");
// Image - A React component for displaying different types of images,
// including network images, static resources, temporary local images,
// and images from local disk, such as the camera roll.
var Image = react_1.memo(native_1.default.Image({
margin: 0,
minWidth: 0,
maxWidth: '%100',
}, utils_1.base, utils_1.variant('image'), utils_1.stylex, styled_system_1.compose(styled_system_1.border, styled_system_1.color, styled_system_1.flexbox, styled_system_1.layout, styled_system_1.position, styled_system_1.space)));
exports.default = Image;