UNPKG

@paraboly/react-native-card

Version:

Fully customizable Card View for React Native.

22 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const react_native_androw_1 = tslib_1.__importDefault(require("react-native-androw")); const react_native_bounceable_1 = tslib_1.__importDefault(require("@freakycoder/react-native-bounceable")); const react_native_1 = require("react-native"); /** * ? Local Imports */ const SimpleCard_style_1 = tslib_1.__importStar(require("./SimpleCard.style")); const SimpleCard = ({ text, style, onPress, shadowStyle, cardTextStyle, innerContainerStyle, backgroundColor = "#fff", ...rest }) => { return (<react_native_bounceable_1.default onPress={onPress} style={[SimpleCard_style_1.default.container, style]} {...rest}> <react_native_androw_1.default style={[SimpleCard_style_1.default.shadowStyle, shadowStyle]}> <react_native_1.View style={[SimpleCard_style_1._containerGlue(backgroundColor), innerContainerStyle]}> <react_native_1.Text style={[SimpleCard_style_1.default.cardTextStyle, cardTextStyle]}>{text}</react_native_1.Text> </react_native_1.View> </react_native_androw_1.default> </react_native_bounceable_1.default>); }; exports.default = SimpleCard; //# sourceMappingURL=SimpleCard.js.map