fix: when searching and then closing search then title Threads or Discussions is not aligned in center (#5471)

* fix: title align in center

* Update app/views/DiscussionsView/index.tsx

* Update app/views/ThreadMessagesView/index.tsx

---------

Co-authored-by: Gleidson Daniel Silva <gleidson10daniel@hotmail.com>
This commit is contained in:
Sanjay Sargam 2024-01-20 01:34:16 +05:30 committed by GitHub
parent f936d022eb
commit 0f901686c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,7 @@ const DiscussionsView = ({ navigation, route }: IDiscussionsViewProps): React.Re
options = {
headerTitleAlign: 'center',
headerTitle: I18n.t('Discussions'),
headerTitleContainerStyle: {},
headerRightContainerStyle: { flexGrow: 1 },
headerLeft: () => (
<HeaderBackButton

View File

@ -131,6 +131,7 @@ class ThreadMessagesView extends React.Component<IThreadMessagesViewProps, IThre
const options: StackNavigationOptions = {
headerTitleAlign: 'center',
headerTitle: I18n.t('Threads'),
headerTitleContainerStyle: {},
headerRightContainerStyle: { flexGrow: 1 },
headerLeft: () => (
<HeaderBackButton