File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React , { memo , useState } from 'react'
2
- import { Button , Modal , View } from 'react-native'
2
+ import { Button , Modal , SafeAreaView , View } from 'react-native'
3
3
import { AutocompleteDropdownContextProvider } from 'react-native-autocomplete-dropdown'
4
4
import { RemoteDataSetExample } from './RemoteDataSetExample'
5
5
@@ -9,12 +9,14 @@ export const ModalExample = memo(() => {
9
9
< >
10
10
< Button onPress = { ( ) => setOpened ( prev => ! prev ) } title = "Open modal" />
11
11
< Modal visible = { opened } >
12
- < AutocompleteDropdownContextProvider >
13
- < View style = { { paddingHorizontal : 20 , flex : 1 , paddingTop : 40 } } >
14
- < RemoteDataSetExample />
15
- < Button onPress = { ( ) => setOpened ( false ) } title = "Close modal" />
16
- </ View >
17
- </ AutocompleteDropdownContextProvider >
12
+ < SafeAreaView style = { { flex : 1 , backgroundColor : 'transparent' } } >
13
+ < AutocompleteDropdownContextProvider >
14
+ < View style = { { paddingHorizontal : 20 , flex : 1 , paddingTop : 20 } } >
15
+ < RemoteDataSetExample />
16
+ < Button onPress = { ( ) => setOpened ( false ) } title = "Close modal" />
17
+ </ View >
18
+ </ AutocompleteDropdownContextProvider >
19
+ </ SafeAreaView >
18
20
</ Modal >
19
21
</ >
20
22
)
You can’t perform that action at this time.
0 commit comments