From b03496f7fd56abcdd3dd11611a1cbd0918e9416c Mon Sep 17 00:00:00 2001 From: SmashinFries Date: Wed, 22 Jun 2022 00:59:42 -0500 Subject: [PATCH] add view more button --- src/containers/mediadrawer/overview/components/personList.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/containers/mediadrawer/overview/components/personList.tsx b/src/containers/mediadrawer/overview/components/personList.tsx index 7a4ca1a..b020794 100644 --- a/src/containers/mediadrawer/overview/components/personList.tsx +++ b/src/containers/mediadrawer/overview/components/personList.tsx @@ -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"; @@ -60,6 +61,9 @@ const CharStaffList = ({charData, staffData, data, setData, navigation, title, c // @ts-ignore )} + {(charData?.length > 10) ? navigation.jumpTo('CharacterStack')} style={{alignItems:'center',justifyContent:'center', width:120, height:180}}> + View More + : null} );