mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
rendering topics
This commit is contained in:
parent
aaf40cd571
commit
ae10a3c03c
@ -76,6 +76,13 @@ export function useProfileContext() {
|
||||
const { server, appToken } = session.current;
|
||||
return await getHandle(server, appToken, name);
|
||||
},
|
||||
getImageUrl: () => {
|
||||
const { server, appToken } = session.current;
|
||||
if (!state.profile.image) {
|
||||
return null;
|
||||
}
|
||||
return getProfileImageUrl(server, appToken, state.profile.revision);
|
||||
},
|
||||
}
|
||||
|
||||
return { state, actions }
|
||||
|
@ -8,6 +8,7 @@ import Ionicons from '@expo/vector-icons/AntDesign';
|
||||
import Colors from 'constants/Colors';
|
||||
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||
import { AddTopic } from './addTopic/AddTopic';
|
||||
import { TopicItem } from './topicItem/TopicItem';
|
||||
|
||||
export function ConversationHeader({ closeConversation, openDetails }) {
|
||||
const navigation = useNavigation();
|
||||
@ -54,7 +55,7 @@ export function ConversationBody() {
|
||||
onScrollBeginDrag={actions.unlatch}
|
||||
maintainVisibleContentPosition={ state.latched ? null : { minIndexForVisibile: 2, } }
|
||||
inverted={true}
|
||||
renderItem={({item}) => <View><Text>ITEM { item?.detail?.data }</Text></View>}
|
||||
renderItem={({item}) => (<TopicItem item={item} />)}
|
||||
keyExtractor={item => item.topicId}
|
||||
/>
|
||||
<View>
|
||||
|
Loading…
Reference in New Issue
Block a user