import { StyleSheet, View } from 'react-native'; import { useColors } from '../../hook'; import { usePaletteContext } from '../../theme'; import { LoadingIcon } from '../../ui/Image'; /** * The data is not ready for loading placeholder component. * @returns React.ReactElement */ export function LoadingPlaceholder() { const { colors } = usePaletteContext(); const { getColor } = useColors({ loading: { light: colors.neutral[7], dark: colors.neutral[4], }, }); return ( ); } const styles = StyleSheet.create({ container: { position: 'absolute', width: '100%', height: '100%', backgroundColor: 'blue', justifyContent: 'center', alignItems: 'center', }, });