import React from 'react';
import { View, StyleSheet } from 'react-native';
export function ContentSkeleton() {
const palette = darkPalette;
return (
{[...Array(4)].map((_, i) => (
))}
{[...Array(4)].map((_, i) => (
))}
);
}
function SkeletonItem({ palette }: { palette: any }) {
return (
);
}
const darkPalette = {
background: '#050505',
skeletonBackground: '#0D0E12',
skeletonHighlight: '#1A1B20',
};
const lightPalette = {
background: '#F7F8FB',
skeletonBackground: '#FFFFFF',
skeletonHighlight: '#F0F2F8',
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
skeletonGrid: {
flexDirection: 'row',
paddingHorizontal: 12,
paddingTop: 8,
},
column: {
flex: 1,
paddingHorizontal: 6,
},
skeletonItem: {
borderRadius: 16,
marginBottom: 12,
overflow: 'hidden',
},
skeletonImage: {
width: '100%',
aspectRatio: 1,
},
skeletonContent: {
padding: 12,
},
skeletonLine: {
height: 12,
borderRadius: 4,
},
});