Files
ProcureLinc-Mobile-App/src/Component/Skelton/SkeltonList.tsx
T
2026-01-02 17:56:16 +05:30

20 lines
616 B
TypeScript

import { View, Dimensions } from 'react-native';
import React from 'react';
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
const SkeltonList = () => {
const { width, height } = Dimensions.get('screen');
return (
<View style={{ width: width - 30, height }}>
{[...Array(10)].map((_, index) => (
<SkeletonPlaceholder key={index} borderRadius={5}>
<SkeletonPlaceholder.Item width={"100%"} height={50} marginBottom={12} />
</SkeletonPlaceholder>
))}
</View>
);
};
export default SkeltonList;