Skip to content

Commit e6eed95

Browse files
srikarparsiOSBotify
authored andcommitted
Merge pull request #40645 from Krishna2323/krishna2323/issue/40597
[CP Staging] fix: IOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list. (cherry picked from commit 995f914)
1 parent bf9a8b0 commit e6eed95

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/pages/NewChatPage.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import isEmpty from 'lodash/isEmpty';
22
import reject from 'lodash/reject';
33
import React, {useCallback, useEffect, useMemo, useState} from 'react';
4-
import {View} from 'react-native';
54
import {useOnyx} from 'react-native-onyx';
65
import Button from '@components/Button';
76
import KeyboardAvoidingView from '@components/KeyboardAvoidingView';
87
import OfflineIndicator from '@components/OfflineIndicator';
98
import {useOptionsList} from '@components/OptionListContextProvider';
109
import {PressableWithFeedback} from '@components/Pressable';
1110
import ReferralProgramCTA from '@components/ReferralProgramCTA';
11+
import ScreenWrapper from '@components/ScreenWrapper';
1212
import SelectCircle from '@components/SelectCircle';
1313
import SelectionList from '@components/SelectionList';
1414
import type {ListItem} from '@components/SelectionList/types';
@@ -265,6 +265,7 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
265265
{!!selectedOptions.length && (
266266
<Button
267267
success
268+
large
268269
text={translate('common.next')}
269270
onPress={createGroup}
270271
pressOnEnter
@@ -276,8 +277,12 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
276277
);
277278

278279
return (
279-
<View
280-
style={styles.flex1}
280+
<ScreenWrapper
281+
shouldEnableKeyboardAvoidingView={false}
282+
includeSafeAreaPaddingBottom={isOffline}
283+
shouldShowOfflineIndicator={false}
284+
includePaddingTop={false}
285+
shouldEnablePickerAvoiding={false}
281286
testID={NewChatPage.displayName}
282287
>
283288
<KeyboardAvoidingView
@@ -306,7 +311,7 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
306311
/>
307312
{isSmallScreenWidth && <OfflineIndicator />}
308313
</KeyboardAvoidingView>
309-
</View>
314+
</ScreenWrapper>
310315
);
311316
}
312317

0 commit comments

Comments
 (0)