Native Base picker: how to add margin/padding to top?

707 Views Asked by At

In my React Native app I'm using the Native Base picker. On the iPhone 12 emulator, when the list to select from pops up it's pushed far to the top of the screen, and I have to tap just below the Back button for it to work. How can I put padding/margin above this screen?

enter image description here

1

There are 1 best solutions below

1
On

Wrap your Views with Safeareaview from react native components https://reactnative.dev/docs/safeareaview Read more about the component here