UNPKG

@rapido/components

Version:

Library of common primitive components used in Rapido apps.

23 lines (22 loc) 1.15 kB
"use strict"; /** * 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"); // TouchableNativeFeedback - A wrapper for making views respond properly to touches (Android only). // On Android this component uses native state drawable to display touch feedback. var TouchableNativeFeedback = react_1.memo(native_1.default.TouchableNativeFeedback({ 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 = TouchableNativeFeedback;