Skip to content

Commit

Permalink
feat(148): alineacion del loading de llamatracker
Browse files Browse the repository at this point in the history
  • Loading branch information
benvalencia committed Nov 26, 2024
1 parent 76e3b02 commit 8a901b3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/screens/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function HomeScreen() {
(res: IUserProfileBase) => {
setIsLoadingSearch(!isLoadingSearch)
storeRecentSearch(fortniteUsername, res.account.id).then()

// GO TO STATS VIEW
navigation.dispatch(
CommonActions.navigate({
Expand Down
2 changes: 1 addition & 1 deletion app/screens/news/news.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function NewsScreen() {
}}>

{newsList[0] === undefined ?
<View style={{position: 'absolute', top: '40%', width: '100%'}}>
<View style={{position: 'absolute', top: '45%', width: '100%'}}>
<Loader></Loader>
</View>
: null}
Expand Down
28 changes: 20 additions & 8 deletions app/screens/profile/stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export default function StatsScreen({route}: any) {

}

console.log(userId)
await fortniteService.getGlobalPlayerStats(userId).then((res: any) => {
console.log(res)
profile.user.name = res.name;
profile.account = res.account;
profile.accountHistory = res.accountLevelHistory;
Expand Down Expand Up @@ -123,15 +125,29 @@ export default function StatsScreen({route}: any) {
<ScrollView
refreshControl={
<RefreshControl refreshing={refreshing} onRefresh={onRefresh}/>}>
<View style={{minHeight: '100%', paddingBottom: bottom}}>
<View style={{
paddingBottom: bottom,
minHeight: '100%',
}}>

{profileInfo === null ?
<View style={{position: 'absolute', top: '40%', width: '100%'}}>
<Loader></Loader>
<View style={{
paddingTop: top,
paddingBottom: bottom + 13,
marginBottom: bottom + 50,
height: '100%'
}}>
<View style={{
position: 'absolute',
top: '45%',
width: '100%',
}}>
<Loader></Loader>
</View>
</View>
: null}

{profileInfo ?
{profileInfo !== null ?
<View style={{gap: 5}}>
{/*HEADER*/}
<View>
Expand Down Expand Up @@ -186,7 +202,6 @@ export default function StatsScreen({route}: any) {
{/* </View>*/}
{/*</Pressable>*/}
</View>

<View style={{
position: 'absolute',
bottom: 0,
Expand Down Expand Up @@ -231,7 +246,6 @@ export default function StatsScreen({route}: any) {
style={{width: 70, height: 70}}></Img>
</View>
</View>

{/*PROFILE INFO*/}
<View style={{alignSelf: 'center', flex: 1, zIndex: 1}}>
<Text style={{
Expand All @@ -241,7 +255,6 @@ export default function StatsScreen({route}: any) {
}}>{profileInfo?.user?.name}</Text>
<Text style={{color: colors.text}}>{getSeason(profileInfo?.account?.season)}</Text>
</View>

<View style={{
alignSelf: 'center',
borderRadius: 25,
Expand Down Expand Up @@ -428,7 +441,6 @@ export default function StatsScreen({route}: any) {
{/* </Pressable>*/}
{/*</View>*/}
</View>

<View style={{
flexDirection: 'row',
backgroundColor: 'rgba(255,255,255,0.15)',
Expand Down
8 changes: 6 additions & 2 deletions app/screens/shop/shop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,14 @@ export default function ShopScreen() {
}, [shopCache]);

return (
<View style={{paddingTop: top, marginBottom: bottom + 40}}>
<View style={{
paddingTop: top,
marginBottom: bottom,
height: '100%',
}}>

{shopList[0] === undefined ?
<View style={{position: 'absolute', top: '50%', width: '100%'}}>
<View style={{position: 'absolute', top: '45%', width: '100%'}}>
<Loader></Loader>
</View>
: null}
Expand Down

0 comments on commit 8a901b3

Please sign in to comment.