import { View, StyleSheet, Dimensions } from 'react-native' import { Skeleton } from './skeleton' const { width: screenWidth } = Dimensions.get('window') const horizontalPadding = 8 * 2 const cardGap = 5 const cardWidth = (screenWidth - horizontalPadding - cardGap) / 2 export function TemplateDetailSkeleton() { return ( {/* 标题区域骨架 */} {/* 图片网格骨架 */} {[1, 2, 3, 4, 5, 6].map((item, index) => ( ))} ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#090A0B', }, titleSection: { paddingHorizontal: 12, paddingBottom: 24, gap: 4, }, mainTitle: { marginBottom: 4, }, gridContainer: { flexDirection: 'row', flexWrap: 'wrap', paddingHorizontal: 8, justifyContent: 'space-between', }, card: { marginBottom: 12, }, cardLeft: { marginRight: 0, }, cardRight: { marginLeft: 0, }, })