Gracefully handle backend failures in Expo app
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user