Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
add view more button
Browse files Browse the repository at this point in the history
  • Loading branch information
SmashinFries committed Jun 22, 2022
1 parent 24219f0 commit b03496f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/containers/mediadrawer/overview/components/personList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { LinearGradient } from "expo-linear-gradient";
import React, { Dispatch, useState } from "react";
import { View, Text, ScrollView, Pressable, ToastAndroid } from "react-native";
import FastImage from "react-native-fast-image";
import { Button } from "react-native-paper";
import { toggleFav } from "../../../../Api";
import { AniMalType, CharacterItemType, StudioItemType } from "../../../../Api/types";
import { ThemeColors } from "../../../../Components/types";
Expand Down Expand Up @@ -60,6 +61,9 @@ const CharStaffList = ({charData, staffData, data, setData, navigation, title, c
// @ts-ignore
<PersonItem key={index} person={person} />
)}
{(charData?.length > 10) ? <Pressable onPress={() => navigation.jumpTo('CharacterStack')} style={{alignItems:'center',justifyContent:'center', width:120, height:180}}>
<Text style={{color:colors.primary}}>View More</Text>
</Pressable> : null}
</ScrollView>
</View>
);
Expand Down

0 comments on commit b03496f

Please sign in to comment.