Gracefully handle backend failures in Expo app

This commit is contained in:
Adolfo Reyna
2026-02-20 19:25:38 -05:00
parent fe9fc8e3e4
commit 009f1ec792
14 changed files with 205 additions and 97 deletions

View File

@@ -1,6 +1,5 @@
import React, { useState } from 'react';
import { Text, ScrollView, FlatList, StyleSheet, View, Share } from 'react-native';
import Hyperlink from 'react-native-hyperlink'
import { Button, Card, Chip } from 'react-native-paper';
import API from '../API.js';
import UserName from './UserName.js';
@@ -44,17 +43,15 @@ let Post = (props) => {
margin: 0,
marginBottom: 0
}}>
<Hyperlink linkDefault={true} linkStyle={{ color: '#2980b9' }}>
<View>
<Text style={{ fontSize: 18 }}>{cleanContent}</Text>
<Media content={post.content} />
<FlatList data={userIds}
horizontal={true}
renderItem={renderPost}
//keyExtractor={item => item}
/>
</View>
</Hyperlink>
<View>
<Text style={{ fontSize: 18 }}>{cleanContent}</Text>
<Media content={post.content} />
<FlatList data={userIds}
horizontal={true}
renderItem={renderPost}
//keyExtractor={item => item}
/>
</View>
</Card.Content>
</Card>
);