import React from 'react'; import { StyleSheet, View } from 'react-native'; import { useChannelsContext } from '../../contexts/channelsContext/ChannelsContext'; import { useTheme } from '../../contexts/themeContext/ThemeContext'; const styles = StyleSheet.create({ container: { flex: 1, }, }); export const ChannelListLoadingIndicator: React.FC = () => { const { theme: { channelListLoadingIndicator: { container }, colors: { white_snow }, }, } = useTheme(); const { numberOfSkeletons, Skeleton } = useChannelsContext(); return ( {Array.from(Array(numberOfSkeletons)).map((_, index) => ( ))} ); };