Skip to content

Commit

Permalink
feat: apply rtl to group channel header
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Oct 17, 2024
1 parent d2776f3 commit d20bff1
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useContext } from 'react';
import { View } from 'react-native';

import { Header, Icon, createStyleSheet, useHeaderStyle } from '@sendbird/uikit-react-native-foundation';
import { Box, Header, Icon, createStyleSheet, useHeaderStyle } from '@sendbird/uikit-react-native-foundation';

import ChannelCover from '../../../components/ChannelCover';
import { useLocalization, useSendbirdChat } from '../../../hooks/useContext';
Expand Down Expand Up @@ -36,13 +35,13 @@ const GroupChannelHeader = ({
<HeaderComponent
clearTitleMargin
title={
<View style={styles.titleContainer}>
<Box style={styles.titleContainer}>
<ChannelCover channel={channel} size={34} containerStyle={styles.avatarGroup} />
<View style={{ flexShrink: 1 }}>
<Box flexShrink={1} alignItems={'flex-start'}>
<Header.Title h2>{headerTitle}</Header.Title>
{renderSubtitle()}
</View>
</View>
</Box>
</Box>
}
left={<Icon icon={'arrow-left'} />}
onPressLeft={onPressHeaderLeft}
Expand Down

0 comments on commit d20bff1

Please sign in to comment.