@rapido/components
Version:
Library of common primitive components used in Rapido apps.
24 lines (23 loc) • 1.09 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");
// View - The most fundamental component for building a UI,
// View is a container that supports layout with flexbox, style,
// some touch handling, and accessibility controls.
var View = react_1.memo(native_1.default.View({
margin: 0,
minWidth: 0,
}, utils_1.base, utils_1.variant(), 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 = View;