mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-20 16:22:04 +00:00
feat: update searchscreen loading spinner
This commit is contained in:
parent
e8accae46f
commit
cd64a36d13
1 changed files with 4 additions and 2 deletions
|
|
@ -46,10 +46,10 @@ import {
|
||||||
MAX_RECENT_SEARCHES,
|
MAX_RECENT_SEARCHES,
|
||||||
} from '../components/search/searchUtils';
|
} from '../components/search/searchUtils';
|
||||||
import { searchStyles as styles } from '../components/search/searchStyles';
|
import { searchStyles as styles } from '../components/search/searchStyles';
|
||||||
import { SearchAnimation } from '../components/search/SearchAnimation';
|
|
||||||
import { AddonSection } from '../components/search/AddonSection';
|
import { AddonSection } from '../components/search/AddonSection';
|
||||||
import { DiscoverSection } from '../components/search/DiscoverSection';
|
import { DiscoverSection } from '../components/search/DiscoverSection';
|
||||||
import { DiscoverBottomSheets } from '../components/search/DiscoverBottomSheets';
|
import { DiscoverBottomSheets } from '../components/search/DiscoverBottomSheets';
|
||||||
|
import LoadingSpinner from '../components/common/LoadingSpinner';
|
||||||
|
|
||||||
const { width } = Dimensions.get('window');
|
const { width } = Dimensions.get('window');
|
||||||
const AnimatedTouchable = Animated.createAnimatedComponent(TouchableOpacity);
|
const AnimatedTouchable = Animated.createAnimatedComponent(TouchableOpacity);
|
||||||
|
|
@ -761,7 +761,9 @@ const SearchScreen = () => {
|
||||||
|
|
||||||
<View style={styles.contentContainer}>
|
<View style={styles.contentContainer}>
|
||||||
{searching && results.byAddon.length === 0 ? (
|
{searching && results.byAddon.length === 0 ? (
|
||||||
<SearchAnimation />
|
<View style={styles.emptyContainer}>
|
||||||
|
<LoadingSpinner size="large" />
|
||||||
|
</View>
|
||||||
) : searched && !hasResultsToShow && !searching ? (
|
) : searched && !hasResultsToShow && !searching ? (
|
||||||
<View style={styles.emptyContainer}>
|
<View style={styles.emptyContainer}>
|
||||||
<MaterialIcons name="search-off" size={64} color={currentTheme.colors.lightGray} />
|
<MaterialIcons name="search-off" size={64} color={currentTheme.colors.lightGray} />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue