UNPKG

clubzella-comic-test-v1

Version:

A clubzella widget component library for React Native.

43 lines (42 loc) 1.95 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var react_native_1 = require("react-native"); var react_1 = __importDefault(require("react")); var pantheon_1 = require("./constants/pantheon"); var PantheonCard_1 = __importDefault(require("./PantheonCard")); var Pantheon = function (_a) { var handleSetPantheon = _a.handleSetPantheon, openInPantheonPanel = _a.openInPantheonPanel, setOpenInPantheonPanel = _a.setOpenInPantheonPanel; return (<react_native_1.View style={{ gap: 10, paddingBottom: 20, padding: 12, paddingRight: 0, paddingTop: 0, }}> <react_native_1.Text style={{ fontWeight: 600 }}>Orisha Pantheon</react_native_1.Text> <react_native_1.ScrollView horizontal={true} showsHorizontalScrollIndicator={true}> <react_native_1.View style={{ flexDirection: "row", justifyContent: "space-between", gap: 5, paddingRight: 10, }}> {pantheon_1.orisha_pantheon.map(function (pantheon, index) { return (<react_native_1.TouchableOpacity activeOpacity={(pantheon === null || pantheon === void 0 ? void 0 : pantheon.locked) ? 1 : 0.5} key={index} style={{ width: 100 }} onPress={function () { if (!pantheon.locked) { handleSetPantheon(pantheon); setOpenInPantheonPanel(!openInPantheonPanel); } }}> <PantheonCard_1.default {...pantheon}/> </react_native_1.TouchableOpacity>); })} </react_native_1.View> </react_native_1.ScrollView> </react_native_1.View>); }; exports.default = Pantheon; var styles = react_native_1.StyleSheet.create({});