1
1
import isEmpty from 'lodash/isEmpty' ;
2
2
import reject from 'lodash/reject' ;
3
3
import React , { useCallback , useEffect , useMemo , useState } from 'react' ;
4
- import { View } from 'react-native' ;
5
4
import { useOnyx } from 'react-native-onyx' ;
6
5
import Button from '@components/Button' ;
7
6
import KeyboardAvoidingView from '@components/KeyboardAvoidingView' ;
8
7
import OfflineIndicator from '@components/OfflineIndicator' ;
9
8
import { useOptionsList } from '@components/OptionListContextProvider' ;
10
9
import { PressableWithFeedback } from '@components/Pressable' ;
11
10
import ReferralProgramCTA from '@components/ReferralProgramCTA' ;
11
+ import ScreenWrapper from '@components/ScreenWrapper' ;
12
12
import SelectCircle from '@components/SelectCircle' ;
13
13
import SelectionList from '@components/SelectionList' ;
14
14
import type { ListItem } from '@components/SelectionList/types' ;
@@ -265,6 +265,7 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
265
265
{ ! ! selectedOptions . length && (
266
266
< Button
267
267
success
268
+ large
268
269
text = { translate ( 'common.next' ) }
269
270
onPress = { createGroup }
270
271
pressOnEnter
@@ -276,8 +277,12 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
276
277
) ;
277
278
278
279
return (
279
- < View
280
- style = { styles . flex1 }
280
+ < ScreenWrapper
281
+ shouldEnableKeyboardAvoidingView = { false }
282
+ includeSafeAreaPaddingBottom = { isOffline }
283
+ shouldShowOfflineIndicator = { false }
284
+ includePaddingTop = { false }
285
+ shouldEnablePickerAvoiding = { false }
281
286
testID = { NewChatPage . displayName }
282
287
>
283
288
< KeyboardAvoidingView
@@ -306,7 +311,7 @@ function NewChatPage({isGroupChat}: NewChatPageProps) {
306
311
/>
307
312
{ isSmallScreenWidth && < OfflineIndicator /> }
308
313
</ KeyboardAvoidingView >
309
- </ View >
314
+ </ ScreenWrapper >
310
315
) ;
311
316
}
312
317
0 commit comments