Skip to content

Commit

Permalink
minor fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Gupta <[email protected]>
  • Loading branch information
Krishna2323 committed Apr 20, 2024
1 parent 52bd979 commit 7bcbe3b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pages/NewChatPage.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import isEmpty from 'lodash/isEmpty';
import reject from 'lodash/reject';
import React, {useCallback, useEffect, useMemo, useState} from 'react';
import {View} from 'react-native';
import {useOnyx} from 'react-native-onyx';
import Button from '@components/Button';
import KeyboardAvoidingView from '@components/KeyboardAvoidingView';
import OfflineIndicator from '@components/OfflineIndicator';
import {useOptionsList} from '@components/OptionListContextProvider';
import {PressableWithFeedback} from '@components/Pressable';
import ReferralProgramCTA from '@components/ReferralProgramCTA';
import ScreenWrapper from '@components/ScreenWrapper';
import SelectCircle from '@components/SelectCircle';
import SelectionList from '@components/SelectionList';
import type {ListItem} from '@components/SelectionList/types';
Expand Down Expand Up @@ -277,8 +277,12 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
);

return (
<View
style={styles.flex1}
<ScreenWrapper
shouldEnableKeyboardAvoidingView={false}
includeSafeAreaPaddingBottom={isOffline}
shouldShowOfflineIndicator={false}
includePaddingTop={false}
shouldEnablePickerAvoiding={false}
testID={NewChatPage.displayName}
>
<KeyboardAvoidingView
Expand Down Expand Up @@ -307,7 +311,7 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
/>
{isSmallScreenWidth && <OfflineIndicator />}
</KeyboardAvoidingView>
</View>
</ScreenWrapper>
);
}

Expand Down

0 comments on commit 7bcbe3b

Please sign in to comment.