import { View, StyleSheet, Dimensions } from 'react-native' import { Skeleton } from './skeleton' const { width: screenWidth } = Dimensions.get('window') const GALLERY_GAP = 2 const GALLERY_HORIZONTAL_PADDING = 0 const GALLERY_ITEM_SIZE = Math.floor( (screenWidth - GALLERY_HORIZONTAL_PADDING * 2 - GALLERY_GAP * 2) / 3 ) export function MySkeleton() { return ( {/* 顶部积分与设置骨架 */} {/* 个人信息区骨架 */} {/* 标题行骨架 */} {/* 作品九宫格骨架 */} {[1, 2, 3, 4, 5, 6, 7, 8, 9].map((item) => ( ))} ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#090A0B', }, topBar: { paddingHorizontal: GALLERY_HORIZONTAL_PADDING, paddingTop: 19, paddingRight: 16, backgroundColor: '#090A0B', flexDirection: 'row', justifyContent: 'flex-end', gap: 12, }, profileSection: { flexDirection: 'row', alignItems: 'center', paddingLeft: 16, paddingRight: 16, marginTop: 20, marginBottom: 32, backgroundColor: '#090A0B', gap: 16, }, profileInfo: { flex: 1, gap: 4, }, profileName: { marginBottom: 4, }, sectionHeader: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', marginBottom: 12, marginHorizontal: 12, backgroundColor: '#090A0B', }, galleryGrid: { flexDirection: 'row', flexWrap: 'wrap', marginBottom: 10, }, galleryItem: { width: GALLERY_ITEM_SIZE, aspectRatio: 1, overflow: 'hidden', backgroundColor: '#1C1E22', position: 'relative', }, gallerySkeleton: { width: '100%', height: undefined, aspectRatio: 1, }, galleryItemMarginRight: { marginRight: GALLERY_GAP, }, galleryItemMarginBottom: { marginBottom: GALLERY_GAP, }, })