Fix to error screen and postthread loading state (#540)

* Fix loading state on postthread

* Improve error screen rendering

* Dark mode exclamation in error screen

* Fix lint
This commit is contained in:
Paul Frazee 2023-04-25 20:45:59 -05:00 committed by GitHub
parent 8f3915e0a5
commit ae895155fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 23 deletions

View file

@ -130,10 +130,16 @@ export const PostThread = observer(function PostThread({
// loading
// =
if ((view.isLoading && !view.isRefreshing) || view.params.uri !== uri) {
if (
!view.hasLoaded ||
(view.isLoading && !view.isRefreshing) ||
view.params.uri !== uri
) {
return (
<CenteredView>
<ActivityIndicator />
<View style={s.p20}>
<ActivityIndicator size="large" />
</View>
</CenteredView>
)
}