Skip to content

Commit 5c79554

Browse files
committed
feat: apply rtl to group channel header
1 parent efd9cc2 commit 5c79554

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/uikit-react-native/src/domain/groupChannel/component/GroupChannelHeader.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useContext } from 'react';
2-
import { View } from 'react-native';
32

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

65
import ChannelCover from '../../../components/ChannelCover';
76
import { useLocalization, useSendbirdChat } from '../../../hooks/useContext';
@@ -36,13 +35,13 @@ const GroupChannelHeader = ({
3635
<HeaderComponent
3736
clearTitleMargin
3837
title={
39-
<View style={styles.titleContainer}>
38+
<Box style={styles.titleContainer}>
4039
<ChannelCover channel={channel} size={34} containerStyle={styles.avatarGroup} />
41-
<View style={{ flexShrink: 1 }}>
40+
<Box flexShrink={1} alignItems={'flex-start'}>
4241
<Header.Title h2>{headerTitle}</Header.Title>
4342
{renderSubtitle()}
44-
</View>
45-
</View>
43+
</Box>
44+
</Box>
4645
}
4746
left={<Icon icon={'arrow-left'} />}
4847
onPressLeft={onPressHeaderLeft}

0 commit comments

Comments
 (0)