diff options
Diffstat (limited to 'src/view/com/profile/ProfileFollows.tsx')
-rw-r--r-- | src/view/com/profile/ProfileFollows.tsx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/view/com/profile/ProfileFollows.tsx b/src/view/com/profile/ProfileFollows.tsx index fb7f08ed8..ddb64787a 100644 --- a/src/view/com/profile/ProfileFollows.tsx +++ b/src/view/com/profile/ProfileFollows.tsx @@ -1,17 +1,19 @@ import React, {useEffect} from 'react' import {observer} from 'mobx-react-lite' -import {ActivityIndicator, StyleSheet, View} from 'react-native' +import {ActivityIndicator, RefreshControl, StyleSheet, View} from 'react-native' import {CenteredView, FlatList} from '../util/Views' import {UserFollowsViewModel, FollowItem} from 'state/models/user-follows-view' import {ErrorMessage} from '../util/error/ErrorMessage' import {ProfileCardWithFollowBtn} from './ProfileCard' import {useStores} from 'state/index' +import {usePalette} from 'lib/hooks/usePalette' export const ProfileFollows = observer(function ProfileFollows({ name, }: { name: string }) { + const pal = usePalette('default') const store = useStores() const view = React.useMemo( () => new UserFollowsViewModel(store, {user: name}), @@ -70,8 +72,14 @@ export const ProfileFollows = observer(function ProfileFollows({ <FlatList data={view.follows} keyExtractor={item => item.did} - refreshing={view.isRefreshing} - onRefresh={onRefresh} + refreshControl={ + <RefreshControl + refreshing={view.isRefreshing} + onRefresh={onRefresh} + tintColor={pal.colors.text} + titleColor={pal.colors.text} + /> + } onEndReached={onEndReached} renderItem={renderItem} initialNumToRender={15} |