I have created custom dropdown where I am getting all countries data, it's working fine but the layout is not correct. The first field of the form is country field, so the list should come under that.

What I have tried 1. Position relative and absolute 2. Margin and padding

Below is the code

<View style={{ marginTop: 15, position: 'relative' }}>
        style={{ position: 'absolute',top:20 }}

and below is the current output image

enter image description here

while I want

enter image description here

0 Answers