diff options
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index a52bc643c..59dbf1e16 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -1,6 +1,7 @@ import React, {useRef} from 'react' import {observer} from 'mobx-react-lite' -import {ActivityIndicator, FlatList, View} from 'react-native' +import {ActivityIndicator, View} from 'react-native' +import {CenteredView, FlatList} from '../util/Views' import { PostThreadViewModel, PostThreadViewPostModel, @@ -50,9 +51,9 @@ export const PostThread = observer(function PostThread({ // = if ((view.isLoading && !view.isRefreshing) || view.params.uri !== uri) { return ( - <View> + <CenteredView> <ActivityIndicator /> - </View> + </CenteredView> ) } @@ -60,9 +61,9 @@ export const PostThread = observer(function PostThread({ // = if (view.hasError) { return ( - <View> + <CenteredView> <ErrorMessage message={view.error} onPressTryAgain={onRefresh} /> - </View> + </CenteredView> ) } |